/* Leafscribe Publishing — fallback component styles (used when Vite build is unavailable) */
html { scroll-behavior: smooth; }
body { background: #ffffff; color: #111827; font-family: 'DM Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.container-premium { width: 100%; max-width: 1400px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .container-premium { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container-premium { padding-left: 2rem; padding-right: 2rem; } }
::selection { background: #8FB996; color: #0A1F18; }
[x-cloak] { display: none !important; }

.btn,
.btn-primary,
.btn-secondary,
.btn-accent,
.btn-dark,
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: .375rem; padding: .75rem 1.25rem; font-size: .875rem; font-weight: 700; letter-spacing: .025em; text-align: center; text-decoration: none; transition: all .2s; }
.btn:focus,
.btn-primary:focus,
.btn-secondary:focus { outline: 2px solid #4A7C6B; outline-offset: 2px; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: #1B4D3E; color: #fff; box-shadow: 0 1px 2px rgba(15,41,32,.12); }
.btn-primary:hover { background: #143D31; color: #fff; }
.btn-secondary { border: 2px solid #1B4D3E; background: transparent; color: #1B4D3E; }
.btn-secondary:hover { background: #1B4D3E; color: #fff; }
.btn-accent { background: #8FB996; color: #0A1F18; }
.btn-accent:hover { background: #C5E0C8; }
.btn-dark { background: #0F2920; color: #fff; }
.btn-dark:hover { background: #0A1F18; }
.btn-ghost { background: transparent; color: #1B4D3E; }
.btn-ghost:hover { background: #E8F5E9; }
.btn-sm { padding: .375rem .75rem; font-size: .75rem; }
.btn-lg { padding: .875rem 1.75rem; font-size: 1rem; }

.card { border-radius: 1rem; border: 1px solid #E8F5E9; background: #fff; box-shadow: 0 4px 24px -4px rgba(27,77,62,.08); transition: all .3s; }
.card-hover { border-radius: 1rem; border: 1px solid #E8F5E9; background: #fff; box-shadow: 0 4px 24px -4px rgba(27,77,62,.08); transition: all .3s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -12px rgba(27,77,62,.18); }

.input-field { width: 100%; border-radius: .75rem; border: 1px solid #C5E0C8; background: #fff; padding: .625rem 1rem; font-size: .875rem; color: #1A2E28; }
.input-field:focus { border-color: #4A7C6B; outline: none; box-shadow: 0 0 0 3px rgba(74,124,107,.2); }
.label { display: block; margin-bottom: .375rem; font-size: .875rem; font-weight: 500; color: #143D31; }

.section-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.875rem; font-weight: 600; letter-spacing: -.025em; color: #0F2920; }
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }
.section-subtitle { margin-top: .5rem; font-size: 1rem; color: #4A7C6B; }

.badge { display: inline-flex; align-items: center; border-radius: 9999px; padding: .125rem .625rem; font-size: .75rem; font-weight: 600; }
.badge-sale { background: #FEF2F2; color: #B91C1C; }
.badge-new { background: #E8F5E9; color: #143D31; }
.badge-stock { background: #ECFDF5; color: #047857; }
.badge-out { background: #F3F4F6; color: #4B5563; }

.nav-link { font-size: .875rem; font-weight: 500; color: #143D31; transition: color .2s; }
.nav-link:hover, .nav-link-active { color: #1B4D3E; }

/* Premium product-photo book stage */
.book-stage {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  width: 100%;
  border-radius: 1rem;
  background:
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(27, 77, 62, 0.08), transparent 70%),
    linear-gradient(165deg, #F7FBF8 0%, #E8F5E9 55%, #D5E6DB 100%);
  overflow: hidden;
}
.book-stage-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.1rem 1rem 0.85rem;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.group:hover .book-stage-inner {
  transform: translateY(-6px) scale(1.03);
}
.book-cover-img {
  width: auto;
  max-width: 92%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  filter: drop-shadow(0 18px 28px rgba(15, 41, 32, 0.22)) drop-shadow(0 4px 8px rgba(15, 41, 32, 0.12));
  transition: filter 0.45s ease;
}
.group:hover .book-cover-img {
  filter: drop-shadow(0 26px 36px rgba(15, 41, 32, 0.28)) drop-shadow(0 8px 12px rgba(15, 41, 32, 0.14));
}

.book-detail-stage {
  background: linear-gradient(165deg, #F9FAFB 0%, #F3F4F6 100%) !important;
}
.book-cover-detail {
  width: auto;
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 16px 28px rgba(15, 41, 32, 0.18));
}

/* Legacy aliases */
.book-cover-wrap { display: block; }
.book-cover { display: block; width: 100%; height: auto; object-fit: contain; }
.price { font-weight: 600; color: #1B4D3E; }
.price-mrp { font-size: .875rem; color: #4A7C6B; text-decoration: line-through; }

.hero-slide { position: relative; min-height: 420px; overflow: hidden; border-radius: 1.5rem; background: #0F2920; }
@media (min-width: 768px) { .hero-slide { min-height: 520px; } }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,31,24,.9), rgba(15,41,32,.7), transparent); }

/* Header categories dropdown helpers */
.shadow-lift { box-shadow: 0 16px 40px -12px rgba(27, 77, 62, 0.18); }
.shadow-soft { box-shadow: 0 4px 24px -4px rgba(27, 77, 62, 0.08); }


.admin-card { border-radius: 1rem; border: 1px solid #E8F5E9; background: #fff; padding: 1.25rem; box-shadow: 0 4px 24px -4px rgba(27,77,62,.08); }

.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prose p { margin-bottom: 1rem; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #E8F5E9; }
::-webkit-scrollbar-thumb { background: #4A7C6B; border-radius: 999px; }
