@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --saffron: #D97706;
  --saffron-light: #FBBF24;
  --saffron-lighter: #FEF3C7;
  --saffron-dark: #B45309;
  --maroon: #4A1525;
  --maroon-light: #6B2138;
  --maroon-lighter: #8B3A52;
  --ivory: #FDFBF7;
  --ivory-dark: #F5F0E8;
  --card-bg: #FFFFFF;
  --text: #1C1917;
  --text-secondary: #57534E;
  --text-muted: #78716C;
  --success: #15803D;
  --success-light: #DCFCE7;
  --warning: #D97706;
  --warning-light: #FEF3C7;
  --danger: #DC2626;
  --danger-light: #FEE2E2;
  --info: #0284C7;
  --info-light: #E0F2FE;
  --purple: #7C3AED;
  --purple-light: #EDE9FE;
  --shadow-sm: 0 1px 3px rgba(74, 21, 37, 0.04), 0 1px 2px rgba(74, 21, 37, 0.06);
  --shadow: 0 4px 12px rgba(74, 21, 37, 0.06), 0 2px 4px rgba(74, 21, 37, 0.04);
  --shadow-md: 0 8px 24px rgba(74, 21, 37, 0.08), 0 4px 8px rgba(74, 21, 37, 0.04);
  --shadow-lg: 0 16px 40px rgba(74, 21, 37, 0.1), 0 8px 16px rgba(74, 21, 37, 0.06);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  touch-action: manipulation;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--ivory);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 15% 15%, rgba(217, 119, 6, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 85%, rgba(74, 21, 37, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-light) 100%);
  box-shadow: 0 4px 20px rgba(74, 21, 37, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--saffron-dark), var(--saffron), var(--saffron-light), var(--saffron), var(--saffron-dark));
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Transparent header only on homepage when at the top */
body.home-page header:not(.scrolled) {
  background: transparent;
  box-shadow: none;
}

body.home-page header:not(.scrolled)::after {
  opacity: 0;
}

.header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled .header-content {
  padding: 0.75rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  color: var(--saffron-light);
}

.logo:hover {
  transform: scale(1.05);
  color: white;
}

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition-fast);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.15px;
}

.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.nav-icon {
  stroke-width: 2.2px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nav-link:hover .nav-icon {
  transform: translateY(-1px);
}

.cart-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -9px;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-light));
  color: var(--maroon);
  border: 1.5px solid #4A1525; /* Maroon color background */
  border-radius: 50%;
  width: 17px;
  height: 17px;
  font-size: 0.62rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.25);
  animation: badgePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
  0% { transform: scale(0); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  padding-top: 6rem;
}

.main-content {
  padding-top: 2.5rem;
  position: relative;
}

.main-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron-dark), var(--saffron-light));
  border-radius: 3px;
}

.hero-section {
  background: linear-gradient(180deg, #4a1525 0%, #4a1525 8%, #3d1220 25%, #5a1a30 42%, #6b2138 58%, #8b3a52 74%, #b8765c 88%, var(--ivory) 100%);
  padding: 8.5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.1s linear, opacity 0.1s linear;
}

.hero-bg-mandala {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.05) 0%, transparent 60%);
  pointer-events: none;
  transition: transform 0.1s linear;
}

.hero-content {
  max-width: 1380px;
  width: 90%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Wide elegant card block covering 80-90% of screen width */
.hero-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 3rem;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.25),
    0 1px 3px rgba(255, 255, 255, 0.05) inset;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  position: relative;
}

/* Left Image (Gopal Jiu) */
.hero-image-left {
  flex: 0 0 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0 15px 35px rgba(251, 191, 36, 0.22)) drop-shadow(0 15px 35px rgba(0, 0, 0, 0.45));
  transition: transform 0.3s ease;
}

.hero-image-left:hover {
  transform: scale(1.03);
}

.deity-img {
  width: 100%;
  height: auto;
  max-width: 210px; /* Increased size for Gopal Jiu */
  max-height: 250px;
  object-fit: contain;
}

/* Right Image (Gurus) */
.hero-image-right {
  flex: 0 0 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.hero-image-right:hover {
  transform: scale(1.03);
}

.gurus-img {
  width: 100%;
  height: auto;
  max-width: 280px;
  max-height: 220px;
  object-fit: contain;
}

/* Hero Typography */
.hero-info {
  text-align: center;
  flex: 1;
  min-width: 0;
}

.hero-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--saffron-light);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 0.5rem;
}

.hero-name {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.8rem, 4.5vw, 2.65rem);
  font-weight: 500;
  color: white;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  text-shadow: none;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.divider-line {
  flex: 1;
  width: 100px;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.3), transparent);
}

.divider-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.hero-signature {
  height: 32px;
  width: auto;
  opacity: 0.8;
  filter: brightness(0) invert(1);
}


.page-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.page-title h1 {
  font-size: 2.4rem;
  color: var(--maroon);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.page-title p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
}

.page-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron-dark), var(--saffron-light));
  margin: 1.25rem auto 0;
  border-radius: 3px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(580px, 1fr));
  gap: 1.75rem;
  animation: fadeInUp 0.7s ease;
}

@media (max-width: 640px) {
  .book-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .book-card {
    border-radius: 12px;
  }

  .book-image-wrapper {
    max-height: 220px;
    padding: 0.75rem;
  }

  .book-image-wrapper img {
    max-height: 190px;
  }

  .book-info {
    padding: 0.85rem;
  }

  .book-title {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
  }

  .book-description {
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
  }

  .book-meta {
    margin-bottom: 0.6rem;
    gap: 0.35rem;
  }

  .meta-tag {
    padding: 0.22rem 0.55rem;
    font-size: 0.72rem;
  }

  .book-bottom {
    padding-top: 0.6rem;
    gap: 0.5rem;
  }

  .book-price {
    font-size: 1.15rem;
    padding-bottom: 0.3rem;
  }

  .quantity-btn {
    padding: 0.55rem 0.7rem;
    font-size: 0.95rem;
  }

  .quantity-input {
    width: 34px;
    font-size: 0.9rem;
  }

  .add-to-cart-btn {
    padding: 0.7rem 0.85rem;
    font-size: 0.85rem;
    min-height: 42px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.book-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  animation: cardAppear 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
  border: 1px solid rgba(74, 21, 37, 0.06);
  display: flex;
  flex-direction: row;
}

.book-card:nth-child(1) { animation-delay: 0.05s; }
.book-card:nth-child(2) { animation-delay: 0.1s; }
.book-card:nth-child(3) { animation-delay: 0.15s; }
.book-card:nth-child(4) { animation-delay: 0.2s; }
.book-card:nth-child(5) { animation-delay: 0.25s; }
.book-card:nth-child(6) { animation-delay: 0.3s; }
.book-card:nth-child(7) { animation-delay: 0.35s; }
.book-card:nth-child(8) { animation-delay: 0.4s; }

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(15px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.book-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(217, 119, 6, 0.12);
  transform: translateY(-2px);
}

.book-image-wrapper {
  flex: 0 0 200px;
  background: linear-gradient(150deg, var(--ivory-dark), #EDE8DF);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.book-image-wrapper img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  transition: var(--transition);
  border-radius: 4px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

.book-card:hover .book-image-wrapper img {
  transform: scale(1.03);
}

.book-info {
  flex: 1;
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.book-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--maroon);
  line-height: 1.35;
}

.book-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.65rem;
  background: var(--ivory);
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
}

.meta-tag-icon {
  font-size: 0.65rem;
  opacity: 0.6;
}

.book-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--ivory-dark);
  gap: 0.85rem;
  flex-wrap: wrap;
}

.book-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--saffron-dark);
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.book-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1.5px solid #E7E5E4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ivory);
  transition: var(--transition-fast);
}

.quantity-control:focus-within {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.quantity-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  font-weight: 500;
  line-height: 1;
  font-family: 'Inter', sans-serif;
}

.quantity-btn:hover {
  background: var(--saffron);
  color: white;
}

.quantity-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  background: transparent !important;
  color: var(--text-secondary) !important;
}

.quantity-input {
  width: 36px;
  text-align: center;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  background: transparent;
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

.add-to-cart-btn {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
  color: white;
  border: none;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  font-size: 0.9rem;
  letter-spacing: 0.1px;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.add-to-cart-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transition: left 0.5s;
}

.add-to-cart-btn:hover::before {
  left: 100%;
}

.add-to-cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(74, 21, 37, 0.25);
}

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

@media (max-width: 640px) {
  .book-card {
    flex-direction: column;
    border-radius: var(--radius);
  }

  .book-image-wrapper {
    flex: none;
    width: 100%;
    max-height: 280px;
    padding: 1rem;
  }

  .book-image-wrapper img {
    max-height: 240px;
  }

  .book-info {
    padding: 1rem;
  }

  .book-title {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
  }

  .book-description {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
  }

  .book-meta {
    margin-bottom: 0.7rem;
  }

  .book-bottom {
    padding-top: 0.7rem;
    gap: 0.6rem;
  }

  .book-price {
    font-size: 1.2rem;
    padding-bottom: 0.35rem;
  }

  .book-image-wrapper {
    max-height: 250px;
    padding: 0.85rem;
  }

  .book-image-wrapper img {
    max-height: 210px;
  }

  .book-title {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
  }

  .book-description {
    font-size: 0.88rem;
    margin-bottom: 0.65rem;
  }

  .book-meta {
    margin-bottom: 0.75rem;
  }

  .book-bottom {
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.75rem;
    gap: 0.65rem;
  }

  .book-price {
    font-size: 1.25rem;
    text-align: center;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--ivory-dark);
  }

  .book-actions {
    width: 100%;
    flex-direction: row;
    gap: 0.45rem;
  }

  .quantity-control {
    flex-shrink: 0;
  }

  .quantity-btn {
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
  }

  .quantity-input {
    width: 36px;
    font-size: 0.95rem;
  }

  .add-to-cart-btn {
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
    min-height: 44px;
  }

  .quantity-input {
    width: 40px;
    font-size: 1rem;
  }

  .add-to-cart-btn {
    flex: 1;
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.cart-page {
  animation: fadeInUp 0.5s ease;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--card-bg);
  padding: 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  animation: slideInLeft 0.35s cubic-bezier(0.4, 0, 0.2, 1) backwards;
  border: 1px solid rgba(74, 21, 37, 0.05);
  transition: var(--transition);
}

.cart-item:nth-child(1) { animation-delay: 0.05s; }
.cart-item:nth-child(2) { animation-delay: 0.1s; }
.cart-item:nth-child(3) { animation-delay: 0.15s; }

.cart-item:hover {
  box-shadow: var(--shadow);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

  .cart-item-image {
    width: 70px;
    height: 90px;
  }

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  color: var(--maroon);
  line-height: 1.4;
}

  .cart-item-price {
    font-size: 0.95rem;
  }

.cart-item-price {
  color: var(--saffron-dark);
  font-weight: 600;
  font-size: 1.02rem;
}

.cart-summary {
  background: var(--card-bg);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-top: 2rem;
  border: 1px solid rgba(217, 119, 6, 0.1);
  animation: fadeInUp 0.5s ease 0.2s backwards;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.summary-row.total-row {
  border-bottom: none;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--maroon);
  padding-top: 1rem;
  margin-top: 0.4rem;
  border-top: 2px solid var(--saffron-light);
}

  .checkout-btn {
    font-size: 0.95rem;
    padding: 0.9rem;
  }

.checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--success), #16A34A);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.25rem;
  transition: var(--transition);
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.checkout-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s;
}

.checkout-btn:hover::before {
  left: 100%;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.3);
}

.checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--success), #16A34A);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.25rem;
  transition: var(--transition);
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.checkout-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s;
}

.checkout-btn:hover::before {
  left: 100%;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.3);
}

.checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--success), #16A34A);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.25rem;
  transition: var(--transition);
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.checkout-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s;
}

.checkout-btn:hover::before {
  left: 100%;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.3);
}

.checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--success), #16A34A);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.25rem;
  transition: var(--transition);
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.checkout-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s;
}

.checkout-btn:hover::before {
  left: 100%;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.3);
}

.checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--success), #16A34A);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.25rem;
  transition: var(--transition);
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.checkout-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s;
}

.checkout-btn:hover::before {
  left: 100%;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.3);
}

  .empty-cart {
    padding: 3rem 1.25rem;
  }

  .empty-cart-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
  }

  .empty-cart h2 {
    font-size: 1.35rem;
  }

.empty-cart a {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--saffron-dark);
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.3rem;
  border: 1.5px solid var(--saffron);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
}

.empty-cart a:hover {
  background: var(--saffron);
  color: white;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--maroon);
  font-size: 0.92rem;
  line-height: 1.4;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #E7E5E4;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
  background: white;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.payment-section {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  margin: 2rem 0;
  animation: fadeInUp 0.5s ease;
  border: 1px solid rgba(217, 119, 6, 0.1);
  position: relative;
  overflow: hidden;
}

.payment-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron-dark), var(--saffron-light), var(--saffron-dark));
}

  .payment-section h2 {
    font-size: 1.3rem;
  }

.qr-code {
  width: 200px;
  height: 200px;
  background: white;
  border: 2px solid var(--saffron-light);
  border-radius: var(--radius);
  margin: 1.25rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.qr-code:hover {
  border-color: var(--saffron);
  box-shadow: var(--shadow);
}

.qr-code img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

  .upi-id {
    font-size: 0.95rem;
  }

.file-upload {
  position: relative;
  display: inline-block;
  width: 100%;
}

.file-upload input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

  .file-upload-label {
    font-size: 0.88rem;
    padding: 1rem;
  }

.file-upload-label:hover {
  background: var(--saffron-lighter);
  border-color: var(--saffron);
}

  .status-badge {
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
  }

.status-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-order-placed {
  background: var(--info-light);
  color: var(--info);
}

.status-payment-pending,
.status-payment-verification-is-pending {
  background: var(--warning-light);
  color: var(--warning);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

.status-payment-verified {
  background: var(--success-light);
  color: var(--success);
}

.status-shipped {
  background: var(--purple-light);
  color: var(--purple);
}

.status-delivered {
  background: var(--success-light);
  color: var(--success);
}

.track-form {
  max-width: 500px;
  margin: 2.5rem auto;
  text-align: center;
  animation: fadeInUp 0.5s ease;
}

.track-form form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(217, 119, 6, 0.08);
}

.track-form form button[type="submit"] {
  width: 100%;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
  color: white;
  border: none;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: var(--transition);
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.track-form form button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s;
}

.track-form form button[type="submit"]:hover::before {
  left: 100%;
}

.track-form form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 21, 37, 0.3);
}

  .track-form form button[type="submit"] {
    font-size: 0.95rem;
    padding: 0.9rem;
  }

.track-form form .checkout-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s;
}

.track-form form .checkout-btn:hover::before {
  left: 100%;
}

.track-form form .checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 21, 37, 0.3);
}

.track-results {
  max-width: 800px;
  margin: 2rem auto;
}

.order-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(74, 21, 37, 0.05);
  margin-bottom: 2rem;
  transition: var(--transition);
}

.order-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ivory-dark);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.order-id {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--maroon);
}

.order-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.order-items-list {
  margin: 1.5rem 0;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--ivory-dark);
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  padding: 0.65rem 0;
  color: var(--text);
  font-weight: 500;
}

.order-item-row span:first-child {
  color: var(--maroon);
}

.order-item-row span:last-child {
  font-weight: 600;
}

.admin-login {
  max-width: 420px;
  margin: 4rem auto;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  animation: fadeInUp 0.5s ease;
  border: 1px solid rgba(74, 21, 37, 0.06);
  position: relative;
  overflow: hidden;
}

.admin-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--maroon), var(--saffron), var(--maroon));
}

  .admin-login h2 {
    font-size: 1.4rem;
  }

.admin-dashboard {
  animation: fadeInUp 0.4s ease;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ivory-dark);
}

.dashboard-header h1 {
  color: var(--maroon);
  font-size: 1.85rem;
}

.logout-btn {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
  color: white;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
}

.logout-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transition: left 0.5s;
}

.logout-btn:hover::before {
  left: 100%;
}

.logout-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(74, 21, 37, 0.3);
}

.logout-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

  .logout-btn {
    font-size: 0.85rem;
    padding: 0.55rem 1rem;
  }

.logout-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.logout-btn:hover {
  background: #B91C1C;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.55rem 1.05rem;
  border: 1.5px solid #E7E5E4;
  background: transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
  border-color: var(--saffron);
  color: var(--saffron-dark);
}

.filter-btn.active {
  background: var(--saffron);
  border-color: var(--saffron);
  color: white;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.25);
}

.admin-order-card {
  background: var(--card-bg);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
  animation: slideInLeft 0.35s cubic-bezier(0.4, 0, 0.2, 1) backwards;
  border: 1px solid rgba(74, 21, 37, 0.05);
  transition: var(--transition);
}

.admin-order-card:hover {
  box-shadow: var(--shadow);
}

.admin-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ivory-dark);
  flex-wrap: wrap;
  gap: 0.6rem;
}

.admin-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.status-select {
  padding: 0.55rem 0.85rem;
  border: 1.5px solid #E7E5E4;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: white;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.status-select:focus {
  border-color: var(--saffron);
  outline: none;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.tracking-input {
  flex: 1;
  min-width: 180px;
  padding: 0.55rem 0.85rem;
  border: 1.5px solid #E7E5E4;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: inherit;
  transition: var(--transition-fast);
}

.tracking-input:focus {
  border-color: var(--saffron);
  outline: none;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.update-btn {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
  color: white;
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.85rem;
}

.update-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.payment-proof-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  color: var(--saffron-dark);
  text-decoration: none;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  background: var(--saffron-lighter);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
}

.payment-proof-link:hover {
  background: var(--saffron-light);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--ivory-dark);
  border-top: 3px solid var(--saffron);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2.5rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, var(--success), #16A34A);
  color: white;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), toastOut 0.3s ease 2.5s forwards;
  z-index: 1000;
  font-weight: 500;
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
}

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

footer {
  background: var(--maroon);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 1.75rem;
  margin-top: 3rem;
  font-size: 0.88rem;
  line-height: 1.6;
}

footer a {
  color: var(--saffron-light);
  text-decoration: none;
}



@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  header.scrolled .header-content {
    padding: 0.5rem 1rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .logo-icon {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  nav {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    font-size: 0.85rem;
  }

  .container {
    padding: 1.5rem 0.75rem;
    padding-top: 5.5rem;
  }

  .main-content {
    padding-top: 1.5rem;
  }

  .main-content::before {
    width: 40px;
    height: 2px;
  }

  .page-title {
    margin-bottom: 0.85rem;
  }

  .page-title h1 {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
  }

  .page-title p {
    font-size: 0.85rem;
  }

  .page-title::after {
    width: 30px;
    margin-top: 0.5rem;
  }

  .book-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .book-card {
    border-radius: 10px;
  }

  .book-image-wrapper {
    max-height: 200px;
    padding: 0.65rem;
  }

  .book-image-wrapper img {
    max-height: 170px;
  }

  .book-info {
    padding: 0.75rem;
  }

  .book-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }

  .book-description {
    font-size: 0.8rem;
    margin-bottom: 0.45rem;
    -webkit-line-clamp: 2;
  }

  .book-meta {
    margin-bottom: 0.5rem;
    gap: 0.3rem;
  }

  .meta-tag {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
  }

  .book-bottom {
    padding-top: 0.5rem;
    gap: 0.45rem;
  }

  .book-price {
    font-size: 1.1rem;
    padding-bottom: 0.25rem;
  }

  .quantity-btn {
    padding: 0.5rem 0.65rem;
    font-size: 0.9rem;
  }

  .quantity-input {
    width: 32px;
    font-size: 0.85rem;
  }

  .add-to-cart-btn {
    padding: 0.65rem 0.8rem;
    font-size: 0.82rem;
    min-height: 40px;
  }

  .page-title {
    margin-bottom: 1rem;
  }

  .page-title h1 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
  }

  .page-title p {
    font-size: 0.88rem;
  }

  .page-title::after {
    width: 35px;
    margin-top: 0.6rem;
  }

  .hero-section {
    padding: 7rem 1.5rem 3.5rem;
  }

  .hero-bg-mandala {
    width: 250px;
    height: 250px;
  }

  .hero-content {
    max-width: 95%;
    width: 95%;
  }

  .hero-card {
    flex-direction: column;
    padding: 2.25rem 1.5rem;
    gap: 1.75rem;
  }

  .hero-image-left {
    width: 120px;
    order: 1;
    justify-content: center;
  }

  .hero-image-right {
    width: 180px;
    order: 2;
    justify-content: center;
    margin-top: -0.5rem;
  }

  .hero-info {
    order: 3;
  }

  .hero-label {
    font-size: 0.72rem;
    letter-spacing: 3px;
  }

  .hero-name {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.25;
  }

  .hero-divider {
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .divider-line {
    max-width: 80px;
  }

  .hero-signature {
    height: 28px;
  }

  .book-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cart-item {
    flex-direction: column;
    text-align: center;
    gap: 0.85rem;
    padding: 1.15rem;
  }

  .admin-order-header {
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
  }

  .admin-actions {
    flex-direction: column;
  }

  .tracking-input {
    width: 100%;
  }

  .toast {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    text-align: center;
  }

  .track-form form {
    padding: 1.25rem;
  }

  .payment-section {
    padding: 1.25rem;
  }

  .qr-code {
    width: 180px;
    height: 180px;
  }

  .admin-login {
    margin: 2.5rem auto;
    padding: 1.5rem;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .dashboard-header h1 {
    font-size: 1.5rem;
  }

  .filters {
    gap: 0.4rem;
  }

  .filter-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }

  .admin-order-card {
    padding: 1.15rem;
  }

  footer {
    padding: 1.25rem 0.75rem;
    font-size: 0.82rem;
    margin-top: 2rem;
  }

  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    padding: 0.65rem 1rem;
    justify-content: center;
  }

  .whatsapp-float svg {
    width: 22px;
    height: 22px;
  }

  .whatsapp-label {
    font-size: 0.82rem;
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  border-radius: 50px;
  padding: 0.7rem 1.2rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  fill: white;
  flex-shrink: 0;
}

.whatsapp-label {
  color: white;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  line-height: 1.3;
  white-space: nowrap;
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.08); }
}

/* Custom Modal / Alert Styles */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.custom-modal-overlay.active {
  opacity: 1;
}
.custom-modal-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  max-width: 440px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(74, 21, 37, 0.08);
  transform: scale(0.9);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
}
.custom-modal-overlay.active .custom-modal-card {
  transform: scale(1);
}
.custom-modal-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  line-height: 1;
}
.custom-modal-title {
  color: var(--maroon);
  font-family: 'Lora', Georgia, serif;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}
.custom-modal-message {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.50rem;
}
.custom-modal-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}
.custom-modal-btn {
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  font-family: 'Inter', sans-serif;
}
.custom-modal-btn-primary {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
  color: white;
}
.custom-modal-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}
.custom-modal-btn-secondary {
  background: var(--ivory-dark);
  color: var(--text-secondary);
}
.custom-modal-btn-secondary:hover {
  background: #E7E5E4;
}

/* Custom Toast Styles */
.custom-toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}
.custom-toast {
  background: var(--card-bg);
  color: var(--text);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--saffron);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 290px;
  max-width: 420px;
  pointer-events: auto;
  transform: translateX(130%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  opacity: 0;
}
.custom-toast.active {
  transform: translateX(0);
  opacity: 1;
}
.custom-toast-success { border-left-color: var(--success); }
.custom-toast-warning { border-left-color: var(--warning); }
.custom-toast-danger { border-left-color: var(--danger); }
.custom-toast-info { border-left-color: var(--info); }

.custom-toast-text {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

/* Bookswagon Inspired Cart UX */
.cart-container-box {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(74, 21, 37, 0.05);
  margin-top: 1.5rem;
  overflow: hidden;
  animation: fadeInUp 0.5s ease;
}

.cart-items-list-container {
  padding: 1.5rem;
}

.bookwagon-cart-item {
  display: flex;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--ivory-dark);
  gap: 1.5rem;
}

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

.item-number-col {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-muted);
  width: 20px;
  padding-top: 0.5rem;
}

.item-image-col {
  width: 75px;
  height: 100px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(74, 21, 37, 0.05);
  background: var(--ivory-dark);
}

.item-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-details-col {
  flex: 1;
}

.item-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.item-author {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.item-price {
  font-size: 0.95rem;
  color: var(--saffron-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

.item-action-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.item-total-price {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.item-total-price strong {
  color: var(--maroon);
  font-size: 1.05rem;
  margin-left: 0.25rem;
}

.item-actions-col {
  flex-shrink: 0;
  padding-top: 0.5rem;
}

.cart-remove-btn {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-remove-btn:hover {
  background: var(--danger-light);
  transform: translateY(-1px);
}

/* Bookswagon Summary Panel styling */
.bookwagon-summary {
  background: #FDFBF7;
  border-top: 1.5px solid var(--ivory-dark);
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.summary-left-col, .summary-right-col {
  flex: 1;
  min-width: 250px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--ivory-dark);
}

.summary-line span:first-child {
  font-weight: 500;
}

.summary-line span:last-child {
  font-weight: 600;
  color: var(--text);
}

.delivery-estimate-text {
  font-size: 0.82rem;
  color: var(--success);
  font-weight: 600;
  margin-top: 1rem;
}

.total-payable-line {
  border-bottom: none;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--maroon);
  padding: 0.75rem 0 1.25rem 0;
}

.total-payable-line span:last-child {
  color: var(--maroon);
  font-size: 1.35rem;
}

.bookwagon-checkout-btn {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
  color: white;
  border: none;
  width: 100%;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25);
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bookwagon-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
}

/* Responsiveness overrides */
@media (max-width: 600px) {
  /* Bottom Navigation Bar Styles on Mobile */
  header {
    height: 46px !important;
  }
  .header-content {
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 1rem !important;
    height: 100% !important;
  }
  header.scrolled .header-content {
    padding: 0 1rem !important;
  }
  .logo {
    margin: 0 auto !important;
  }
  .logo svg {
    width: 20px !important;
    height: 20px !important;
  }
  
  nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 52px !important;
    background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-light) 100%) !important;
    border-top: 2px solid var(--saffron-dark) !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0.2rem 0 !important;
    margin: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15) !important;
    gap: 0 !important;
  }

  .nav-link {
    flex: 1 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    font-size: 0.65rem !important;
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 0.15rem 0 !important;
    border-radius: 0 !important;
    min-height: 44px !important;
    letter-spacing: 0px !important;
    background: transparent !important;
  }
  
  .nav-link:hover, .nav-link:active {
    color: white !important;
    background: rgba(255, 255, 255, 0.06) !important;
  }
  
  .nav-icon {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
  }

  .cart-icon-wrapper {
    margin: 0 !important;
  }

  .cart-badge {
    top: -5px !important;
    right: -7px !important;
    font-size: 0.58rem !important;
    width: 14px !important;
    height: 14px !important;
  }

  body {
    padding-bottom: 60px !important;
  }

  .container {
    padding-top: 3.5rem !important;
  }

  /* Global Mobile Typography Consistency across Tabs */
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.25 !important;
  }

  .page-title h1,
  .dashboard-header h1,
  .checkout-title h1,
  .page-title h2 {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: var(--maroon) !important;
    text-align: center !important;
    margin-bottom: 0.35rem !important;
  }

  .page-title p,
  .dashboard-header p {
    font-size: 0.8rem !important;
    color: var(--text-secondary) !important;
    text-align: center !important;
  }

  .page-title,
  .dashboard-header {
    text-align: center !important;
    margin-bottom: 1.25rem !important;
    width: 100% !important;
  }

  .empty-cart h2,
  #inventory-tab-view h2,
  .admin-login h2 {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 1.1rem !important;
    color: var(--maroon) !important;
    text-align: center !important;
    margin-bottom: 0.85rem !important;
  }

  .book-title,
  .item-title,
  .order-id,
  .admin-order-id {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    color: var(--maroon) !important;
  }

  .item-author,
  .book-author,
  .order-date,
  .order-item-row span:first-child {
    font-size: 0.72rem !important;
    color: var(--text-secondary) !important;
  }

  .book-price,
  .item-price,
  .order-item-row span:last-child {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--saffron-dark) !important;
  }

  .order-card {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }
  
  .order-header {
    margin-bottom: 0.85rem !important;
    padding-bottom: 0.65rem !important;
  }

  .order-item-row {
    font-size: 0.82rem !important;
    padding: 0.45rem 0 !important;
  }

  /* Interactive Target Sizing Accessibility - Solves Wrapping & Square Boxes */
  .quantity-control {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    height: 32px !important; /* Slimmer height */
    width: 86px !important; /* Exact width needed to fit elements horizontally */
    max-width: 86px !important;
    border: 1.5px solid #E7E5E4 !important;
    border-radius: var(--radius-sm) !important;
    overflow: hidden !important;
    background: var(--ivory) !important;
    flex-shrink: 0 !important;
  }
  
  .quantity-btn {
    height: 100% !important;
    width: 26px !important;
    min-width: 26px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
    background: transparent !important;
    border: none !important;
    color: var(--text-secondary) !important;
    cursor: pointer !important;
  }
  
  .quantity-input {
    height: 100% !important;
    width: 30px !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    padding: 0 !important;
  }
  
  .add-to-cart-btn {
    height: 32px !important;
    min-height: 32px !important; /* Match quantity controls */
    width: 100px !important;
    flex: 0 0 100px !important;
    padding: 0 0.5rem !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Hero Section Mobile Compact Override */
  .hero-section {
    padding: 3.25rem 1rem 0.75rem !important;
  }
  
  .hero-bg-mandala {
    width: 140px !important;
    height: 140px !important;
    opacity: 0.04 !important;
  }
  
  .hero-card {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-areas: 
      "info info"
      "img-left img-right" !important;
    padding: 1rem 0.85rem !important;
    gap: 0.75rem 0.4rem !important;
    border-radius: var(--radius) !important;
  }
  
  .hero-info {
    grid-area: info !important;
    text-align: center !important;
  }
  
  .hero-label {
    font-size: 0.62rem !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 0.2rem !important;
  }
  
  .hero-name {
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.4rem !important;
  }
  
  .hero-divider {
    margin-bottom: 0.4rem !important;
    gap: 0.4rem !important;
  }
  
  .divider-line {
    max-width: 50px !important;
  }
  
  .divider-icon img {
    height: 18px !important;
  }
  
  .hero-signature {
    height: 18px !important;
  }
  
  .hero-image-left {
    grid-area: img-left !important;
    width: 85px !important;
    justify-self: center !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
  }
  
  .hero-image-right {
    grid-area: img-right !important;
    width: 125px !important;
    justify-self: center !important;
    margin-top: 0 !important;
    display: flex !important;
    justify-content: center !important;
  }
  
  .deity-img {
    max-height: 105px !important;
  }
  
  .gurus-img {
    max-height: 95px !important;
  }

  /* Book Card mobile layout refinements - Premium Horizontal Card */
  .book-card {
    flex-direction: row !important; /* Side-by-side layout */
    align-items: stretch !important;
    background: white !important;
    border-radius: var(--radius-lg) !important;
    border: 1px solid rgba(74, 21, 37, 0.07) !important;
    box-shadow: var(--shadow-sm) !important;
    overflow: hidden !important;
    max-width: 100% !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 135px !important;
  }

  .book-image-wrapper {
    flex: 0 0 85px !important; /* Fixed left column for cover */
    width: 85px !important;
    height: auto !important;
    background: transparent !important;
    padding: 0.4rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-right: 1px solid rgba(74, 21, 37, 0.04) !important;
    border-bottom: none !important;
  }

  .book-image-wrapper img {
    height: auto !important;
    width: auto !important;
    max-width: 75px !important;
    max-height: 115px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15)) !important; /* Drop shadow on cover */
    border-radius: 2px !important;
  }

  .book-info {
    flex: 1 !important;
    padding: 0.65rem 0.75rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important; /* Stack elements naturally from top to bottom */
    gap: 0.3rem !important;
    min-width: 0 !important;
  }

  .book-title {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 0.98rem !important; /* Balanced book title font size */
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin-bottom: 0.2rem !important;
    text-align: left !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    color: var(--maroon) !important;
  }

  /* Hide description on mobile to maximize layout efficiency */
  .book-description {
    display: none !important;
  }

  .book-meta {
    justify-content: flex-start !important;
    margin-bottom: 0.25rem !important;
    gap: 0.25rem !important;
    flex-wrap: wrap !important;
  }
  
  .meta-tag {
    padding: 0.12rem 0.35rem !important;
    font-size: 0.68rem !important; /* Enhanced metadata readability */
  }

  .book-bottom {
    display: flex !important;
    flex-direction: column !important; /* Stack price and actions vertically for clean alignment */
    align-items: flex-start !important;
    gap: 0.4rem !important;
    border-top: none !important;
    padding-top: 0.15rem !important;
    margin-top: auto !important; /* Push actions to bottom of card */
    width: 100% !important;
  }

  .book-price {
    font-size: 1.05rem !important; /* Proportional price text size */
    font-weight: 700 !important;
    text-align: left !important;
    color: var(--saffron-dark) !important;
    margin: 0 !important;
  }

  .book-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.4rem !important;
    margin: 0 !important;
    width: 100% !important;
  }

  /* Compact controls for row placement */
  .quantity-control {
    height: 32px !important;
    flex: 0 0 86px !important;
    width: 86px !important;
  }
  
  .quantity-btn {
    padding: 0 0.55rem !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.05rem !important;
    min-width: 26px !important;
  }
  
  .quantity-input {
    height: 100% !important;
    font-size: 0.9rem !important;
    width: 28px !important;
  }

  .add-to-cart-btn {
    height: 32px !important;
    min-height: 32px !important; /* Match quantity controls */
    width: 100px !important;
    flex: 0 0 100px !important;
    padding: 0 0.5rem !important;
    font-size: 0.72rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Style out of stock label as a premium badge */
  .out-of-stock-label {
    color: #DC2626 !important;
    background: #FEF2F2 !important;
    border: 1px solid #FCA5A5 !important;
    padding: 0.25rem 0.65rem !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
    text-align: center !important;
    width: 100% !important;
  }

  /* Cart Layout Refinement on Mobile */
  .bookwagon-cart-item {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    padding: 0.85rem 0 !important;
    position: relative !important;
  }
  
  .item-number-col {
    display: none !important;
  }
  
  .item-image-col {
    width: 55px !important;
    height: 75px !important;
    flex-shrink: 0 !important;
  }
  
  .item-details-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.2rem !important;
    padding-right: 0.25rem !important; /* Normal padding, no absolute overlaps */
    flex: 1 1 auto !important;
    min-width: 0 !important; /* Allow proper flex wrapping of titles */
  }
  
  .item-title {
    font-size: 0.98rem !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
  
  .item-author {
    font-size: 0.72rem !important;
    margin-bottom: 0.1rem !important;
  }
  
  .item-price {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
  }
  
  .item-action-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.4rem !important;
    margin-top: 0.35rem !important;
  }

  /* Specific quantity control styling to prevent stretching into a square box */
  .bookwagon-cart-item .quantity-control {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    height: 32px !important;
    max-height: 32px !important;
    width: 86px !important;
    max-width: 86px !important;
    border: 1.5px solid #E7E5E4 !important;
    border-radius: var(--radius-sm) !important;
    overflow: hidden !important;
    background: var(--ivory) !important;
    flex-shrink: 0 !important;
    aspect-ratio: auto !important;
  }
  
  .bookwagon-cart-item .quantity-control .quantity-btn {
    height: 32px !important;
    max-height: 32px !important;
    width: 26px !important;
    min-width: 26px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
    background: transparent !important;
    border: none !important;
    color: var(--text-secondary) !important;
  }
  
  .bookwagon-cart-item .quantity-control .quantity-input {
    height: 32px !important;
    max-height: 32px !important;
    width: 30px !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    padding: 0 !important;
  }

  .item-total-price {
    font-size: 0.78rem !important;
  }
  
  .item-total-price strong {
    font-size: 0.85rem !important;
  }
  
  .item-actions-col {
    position: static !important; /* Standard static flow */
    margin-left: auto !important; /* Push remove button to the far right */
    align-self: flex-start !important; /* Align to top-right side naturally */
    padding-top: 0.1rem !important;
    flex-shrink: 0 !important;
  }
  
  .cart-remove-btn {
    background: #FEF2F2 !important;
    color: #EF4444 !important;
    border: 1px solid #FEE2E2 !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 0.2rem 0.45rem !important;
    border-radius: var(--radius-sm) !important;
    min-height: 22px !important;
    display: inline-block !important;
    text-align: center !important;
  }

  .bookwagon-summary {
    flex-direction: column !important;
    padding: 1rem !important;
    gap: 1rem !important;
  }

  .bookwagon-summary .summary-left-col,
  .bookwagon-summary .summary-right-col {
    width: 100% !important;
  }

  .summary-line span {
    font-size: 0.85rem !important;
  }

  .total-payable-line span:last-child {
    font-size: 1.15rem !important;
  }

  .bookwagon-checkout-btn {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.92rem !important;
  }

  /* Form Fields Stacking on Mobile */
  .form-row {
    flex-direction: column !important;
    gap: 1.25rem !important;
  }
  
  .form-row .form-group {
    flex: 1 1 100% !important;
    width: 100% !important;
    margin-bottom: 0 !important;
  }

  /* Track Order Card Adjustments */
  .track-form {
    padding: 1rem !important;
    margin-bottom: 1.25rem !important;
  }

  .order-card {
    padding: 0.85rem !important;
    margin-bottom: 0.85rem !important;
  }
  
  .order-header {
    margin-bottom: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    gap: 0.35rem !important;
  }

  .order-items-list {
    margin: 0.5rem 0 !important;
    padding: 0.25rem 0 !important;
  }

  .order-item-row {
    padding: 0.3rem 0 !important;
  }

  .summary-row {
    padding: 0.3rem 0 !important;
  }

  .summary-row.total-row {
    padding-top: 0.5rem !important;
    margin-top: 0.25rem !important;
  }

  /* WhatsApp Floating Button Mobile Optimization */
  .whatsapp-float {
    bottom: 68px !important; /* Adjusted slightly down above the slimmer bottom navigation bar */
    right: 1rem !important;
    left: auto !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    justify-content: center !important;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4) !important;
  }

  .whatsapp-float svg {
    width: 26px !important;
    height: 26px !important;
  }

  .whatsapp-label {
    display: none !important; /* Hide long label text on mobile screen sizes */
  }
}


/* Copy Track button */
.copy-track-btn {
  background: var(--purple);
  color: white;
  border: none;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  line-height: 1;
}

.copy-track-btn:hover {
  background: #6D28D9; /* Darker purple */
  transform: translateY(-1px);
}

.copy-track-btn.copied {
  background: #15803D !important; /* Green */
}

/* Copy Address button for Admin Panel */
.copy-address-btn {
  background: var(--saffron);
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

.copy-address-btn:hover {
  background: var(--saffron-dark);
  transform: translateY(-1px);
}

.copy-address-btn.copied {
  background: #15803D !important; /* Green */
}

/* ============================================
   Modern Dynamic Checkout & India Post Styles
   ============================================ */

.checkout-page {
  max-width: 1140px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}

.checkout-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(217, 119, 6, 0.12);
  margin-bottom: 2rem;
  position: relative;
}

.card-step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.step-badge {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
  color: #FEF3C7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(74, 21, 37, 0.2);
  flex-shrink: 0;
}

.card-step-header h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.35rem;
  color: var(--maroon);
  margin: 0;
  line-height: 1.2;
}

.step-sub {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.req-star {
  color: var(--danger);
  font-weight: 700;
}

/* PIN Code Row */
.pincode-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.pincode-status-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  background: var(--ivory-dark);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.pincode-status-pill.loading {
  background: var(--info-light);
  color: var(--info);
}

.pincode-status-pill.mh {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.pincode-status-pill.other {
  background: var(--purple-light);
  color: var(--purple);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.pincode-input-wrapper {
  position: relative;
}

.pincode-spinner {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(217, 119, 6, 0.2);
  border-top-color: var(--saffron);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Zone Notification Banner */
.zone-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-top: 1.25rem;
  font-size: 0.88rem;
  transition: var(--transition);
}

.zone-banner .zone-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zone-text-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.zone-banner strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.zone-banner-mh {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
}

.zone-banner-other {
  background: #F5F3FF;
  border: 1px solid #DDD6FE;
  color: #5B21B6;
}

.zone-banner-neutral {
  background: var(--ivory-dark);
  border: 1px solid #E7E5E4;
  color: var(--text-secondary);
}

/* Payment Card & Dynamic QR Section */
.upi-box-container {
  background: linear-gradient(180deg, #FDFBF7 0%, #FAF5EE 100%);
  border: 1px solid #EADDC8;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.payable-highlight-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  border: 2px dashed var(--saffron-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
}

.banner-label {
  font-weight: 600;
  color: var(--maroon);
  font-size: 0.98rem;
}

.banner-amount {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--saffron-dark);
}

.qr-code-center {
  text-align: center;
  margin-bottom: 1.5rem;
}

.qr-code-frame {
  width: 260px;
  height: 260px;
  background: white;
  margin: 0 auto 0.75rem;
  padding: 10px;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(74, 21, 37, 0.08);
  border: 2px solid var(--saffron-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.qr-code-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-caption {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.upi-info-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid #E7E5E4;
  margin-bottom: 1rem;
}

.upi-meta-title {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.upi-id-string {
  font-family: monospace;
  font-size: 1.05rem;
  color: var(--maroon);
}

.copy-upi-button {
  background: var(--maroon);
  color: white;
  border: none;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.copy-upi-button:hover {
  background: var(--maroon-light);
  transform: translateY(-1px);
}

.copy-upi-button.copied {
  background: var(--success) !important;
}

.mobile-pay-action-btn {
  display: none; /* Shown on small screens */
  width: 100%;
  background: linear-gradient(135deg, #4F46E5, #3B82F6);
  color: white;
  text-decoration: none;
  text-align: center;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: var(--transition-fast);
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mobile-pay-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

@media (max-width: 768px) {
  .mobile-pay-action-btn {
    display: flex;
  }
}

/* Screenshot Dropzone */
.screenshot-dropzone {
  position: relative;
  border: 2px dashed #D6D3D1;
  border-radius: var(--radius);
  background: #FDFBF7;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.screenshot-dropzone:hover {
  border-color: var(--saffron);
  background: #FEF9EE;
}

.screenshot-dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.dropzone-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.dropzone-svg {
  color: var(--saffron);
  margin-bottom: 0.25rem;
}

.dropzone-main-text {
  font-weight: 600;
  color: var(--maroon);
  font-size: 0.92rem;
}

.dropzone-sub-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dropzone-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 6;
}

.dropzone-preview img {
  max-height: 180px;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid #E7E5E4;
}

.preview-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.preview-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.btn-remove-preview {
  background: var(--danger-light);
  color: var(--danger);
  border: none;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-remove-preview:hover {
  background: var(--danger);
  color: white;
}

/* Submit Button */
.submit-order-action-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--success), #16A34A);
  color: white;
  border: none;
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1.5rem;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.submit-order-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.35);
}

/* RIGHT COLUMN - Sticky Order Summary */
.sticky-summary-box {
  position: sticky;
  top: 90px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(217, 119, 6, 0.12);
}

.summary-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.summary-header-row h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25rem;
  color: var(--maroon);
  margin: 0;
}

.items-count-pill {
  background: var(--ivory-dark);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.25rem 0.65rem;
  border-radius: 12px;
}

/* Items in Summary */
.checkout-items-container {
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 1.25rem;
  padding-right: 0.25rem;
}

.checkout-item-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed #F5F0E8;
}

.checkout-item-thumb {
  width: 44px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.checkout-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-item-info {
  flex: 1;
  min-width: 0;
}

.checkout-item-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--maroon);
  line-height: 1.3;
  margin: 0 0 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-item-meta {
  display: flex;
  gap: 0.4rem;
  font-size: 0.72rem;
}

.qty-pill {
  background: #F5F0E8;
  color: var(--text-secondary);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}

.item-weight-pill {
  color: var(--text-muted);
}

.checkout-item-price {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--saffron-dark);
  white-space: nowrap;
}

/* Weight Breakdown Card Box */
.weight-card-box {
  background: #FDFBF7;
  border: 1px solid #EFE8DA;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.weight-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #EFE8DA;
}

.weight-title-inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--maroon);
}

.weight-pill {
  background: var(--saffron-lighter);
  color: var(--saffron-dark);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.weight-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.18rem 0;
}

.weight-line-total {
  border-top: 1px dashed #EFE8DA;
  margin-top: 0.35rem;
  padding-top: 0.4rem;
  font-weight: 700;
  color: var(--maroon);
}

/* Price Breakdown in Summary */
.summary-price-breakdown {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 0.85rem;
  margin-bottom: 1.25rem;
}

.price-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.price-num {
  font-weight: 600;
  color: var(--text);
}

.shipping-price-line .slab-badge {
  display: block;
  font-size: 0.72rem;
  color: var(--saffron-dark);
  font-weight: 500;
}

.total-price-line {
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  border-top: 2px solid var(--saffron-light);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--maroon);
}

.price-num-total {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--saffron-dark);
}

.shipping-trust-badge {
  display: flex;
  gap: 0.6rem;
  background: #F0FDF4;
  border: 1px solid #DCFCE7;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  font-size: 0.78rem;
  color: #166534;
  line-height: 1.4;
}

.shipping-trust-badge svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Responsive layout */
@media (max-width: 960px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .sticky-summary-box {
    position: static;
  }

  .checkout-summary-col {
    order: -1;
  }
}


