/* ==========================================================================
   Bhagyoday design system
   --------------------------------------------------------------------------
   Layered over Bootstrap 5. Bootstrap keeps doing the structural work (grid,
   collapse, dropdowns, pagination); everything visual is defined here.

   Palette is devotional but restrained: deep maroon for authority, marigold
   for warmth and calls to action, gold used sparingly as an accent, on an
   ivory ground rather than flat white so long pages of product cards do not
   glare.
   ========================================================================== */

:root {
  /* ---- Brand ---- */
  --maroon-900: #4A1216;
  --maroon-800: #5E181D;
  --maroon-700: #7B1E23;
  --maroon-600: #94272D;
  --maroon-100: #F6E6E7;

  --marigold-700: #B8641A;
  --marigold-600: #D97A1E;
  --marigold-500: #E8901F;
  --marigold-400: #F2A93B;
  --marigold-100: #FDF0DC;

  --gold-600: #A8871F;
  --gold-500: #C9A227;
  --gold-200: #EEDFA8;

  /* ---- Neutrals (warm, so they sit with the brand) ---- */
  --ink-900: #241A14;
  --ink-700: #3D2E24;
  --ink-500: #6B5A4C;
  --ink-400: #8C7B6D;
  --ink-300: #B9AA9C;
  --ink-200: #DFD5CA;
  --ink-100: #EFE8DF;
  --ivory:   #FDFAF5;
  --ivory-2: #F7F1E8;
  --white:   #FFFFFF;

  /* ---- Status ---- */
  --success-700: #1F6B45;
  --success-100: #E3F3EA;
  --danger-700:  #A32621;
  --danger-100:  #FBE7E5;
  --warning-700: #8A6100;
  --warning-100: #FCF1D8;
  --info-700:    #1F5673;
  --info-100:    #E3F0F7;

  /* ---- Type ---- */
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.8125rem;
  --text-base: 0.9375rem;
  --text-md:   1.0625rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  1.875rem;
  --text-3xl:  2.375rem;
  --text-4xl:  3rem;

  /* ---- Space ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* ---- Shape ---- */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(36, 26, 20, 0.06);
  --shadow-sm: 0 2px 6px rgba(36, 26, 20, 0.07);
  --shadow:    0 6px 18px rgba(36, 26, 20, 0.09);
  --shadow-lg: 0 16px 40px rgba(36, 26, 20, 0.14);

  --ring: 0 0 0 3px rgba(232, 144, 31, 0.32);

  --header-h: 72px;
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4, h5, h6, .display {
  font-family: var(--font-display);
  color: var(--maroon-800);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin-top: 0;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-md); }

p { margin-top: 0; }

a {
  color: var(--maroon-700);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--marigold-600); }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--marigold-100);
  color: var(--maroon-800);
}

/* Small caps label used above section headings */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marigold-600);
  margin-bottom: var(--space-2);
  display: block;
}

.section-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.section-lead {
  color: var(--ink-500);
  max-width: 60ch;
  margin: 0 auto var(--space-6);
}

.text-muted-warm { color: var(--ink-500) !important; }

.divider-om {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--gold-500);
  margin: var(--space-4) 0 var(--space-6);
}
.divider-om::before,
.divider-om::after {
  content: "";
  height: 1px;
  width: 56px;
  background: linear-gradient(90deg, transparent, var(--gold-200), transparent);
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.section { padding: var(--space-8) 0; }
.section-tight { padding: var(--space-7) 0; }
.section-ivory { background: var(--ivory-2); }
.section-maroon {
  background: linear-gradient(160deg, var(--maroon-800), var(--maroon-900));
  color: var(--ink-100);
}
.section-maroon h1,
.section-maroon h2,
.section-maroon h3 { color: var(--white); }

.page-head {
  padding: var(--space-7) 0 var(--space-6);
  background: linear-gradient(160deg, var(--maroon-800) 0%, var(--maroon-900) 100%);
  color: var(--ink-100);
  position: relative;
  overflow: hidden;
}
.page-head::after {
  /* soft marigold bloom, keeps the band from reading as a flat slab */
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,144,31,0.30), transparent 68%);
  pointer-events: none;
}
.page-head h1 { color: var(--white); margin-bottom: var(--space-2); }
.page-head p { color: rgba(255,255,255,0.76); margin-bottom: 0; max-width: 60ch; }
.page-head .eyebrow { color: var(--gold-200); }

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.site-header {
  background: rgba(253, 250, 245, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ink-100);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand-bhagyoday {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--maroon-800) !important;
  letter-spacing: -0.02em;
}
.navbar-brand-bhagyoday:hover { color: var(--maroon-600) !important; }

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--marigold-500), var(--maroon-700));
  color: var(--white);
  font-size: 1.15rem;
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.site-header .nav-link {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--ink-700) !important;
  padding: var(--space-2) var(--space-3) !important;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}
.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--maroon-700) !important;
  background: var(--maroon-100);
}

.site-header .dropdown-menu {
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-2);
  margin-top: var(--space-2);
}
.site-header .dropdown-item {
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-base);
  color: var(--ink-700);
}
.site-header .dropdown-item:hover {
  background: var(--marigold-100);
  color: var(--maroon-700);
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--ivory-2);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--maroon-700);
}
.nav-user .avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--maroon-700);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 700;
}

.cart-link { position: relative; }
.cart-count {
  position: absolute;
  top: 0; right: -2px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--marigold-500);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--ivory);
}

.navbar-toggler {
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
}
.navbar-toggler:focus { box-shadow: var(--ring); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: var(--radius);
  padding: 0.625rem 1.25rem;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.15s ease,
              background 0.15s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  line-height: 1.35;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { box-shadow: var(--ring); }

.btn-primary,
.btn-bhagyoday {
  background: linear-gradient(145deg, var(--marigold-500), var(--marigold-600));
  color: var(--white);
  box-shadow: var(--shadow-xs);
}
.btn-primary:hover,
.btn-bhagyoday:hover {
  background: linear-gradient(145deg, var(--marigold-400), var(--marigold-500));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-maroon {
  background: var(--maroon-700);
  color: var(--white);
}
.btn-maroon:hover { background: var(--maroon-600); color: var(--white); }

.btn-outline-maroon {
  border-color: var(--maroon-700);
  color: var(--maroon-700);
  background: transparent;
}
.btn-outline-maroon:hover {
  background: var(--maroon-700);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-700);
  border-color: var(--ink-200);
}
.btn-ghost:hover {
  background: var(--ivory-2);
  border-color: var(--ink-300);
  color: var(--maroon-700);
}

.btn-success { background: var(--success-700); border-color: var(--success-700); }
.btn-success:hover { background: #1a5b3a; border-color: #1a5b3a; }
.btn-danger  { background: var(--danger-700);  border-color: var(--danger-700); }
.btn-danger:hover { background: #8d211c; border-color: #8d211c; }

.btn-sm { padding: 0.375rem 0.75rem; font-size: var(--text-sm); border-radius: var(--radius-sm); }
.btn-lg { padding: 0.875rem 1.75rem; font-size: var(--text-md); border-radius: var(--radius); }
.btn-block-mobile { width: 100%; }
@media (min-width: 576px) { .btn-block-mobile { width: auto; } }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.card-elevated { box-shadow: var(--shadow-sm); border-color: transparent; }

.card-hover {
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              border-color 0.18s ease;
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--ink-200);
}

.card-header {
  background: var(--ivory-2);
  border-bottom: 1px solid var(--ink-100);
  padding: var(--space-4) var(--space-5);
  font-weight: 600;
  color: var(--maroon-800);
  font-family: var(--font-display);
  font-size: var(--text-md);
}

.card-body { padding: var(--space-5); }
.card-footer {
  background: var(--ivory-2);
  border-top: 1px solid var(--ink-100);
  padding: var(--space-4) var(--space-5);
}

/* --- product card --- */
.product-card { display: flex; flex-direction: column; height: 100%; }
.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ivory-2);
  overflow: hidden;
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card-hover:hover .product-media img { transform: scale(1.04); }

.product-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.product-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--ink-900);
  margin: 0;
  line-height: 1.35;
  /* two-line clamp keeps every card in a row the same height */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--maroon-700);
  margin-top: auto;
}
.product-actions { padding: 0 var(--space-4) var(--space-4); }

/* --- pandit card --- */
.pandit-card { text-align: center; height: 100%; }
.pandit-photo {
  width: 104px; height: 104px;
  border-radius: 50%;
  object-fit: cover;
  margin: var(--space-5) auto var(--space-3);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold-200), var(--shadow-sm);
  display: block;
  background: var(--ivory-2);
}
.pandit-name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--maroon-800);
  margin-bottom: var(--space-1);
}
.pandit-meta { font-size: var(--text-sm); color: var(--ink-500); }

/* --- puja card --- */
.puja-card { height: 100%; display: flex; flex-direction: column; }
.puja-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, var(--marigold-100), var(--maroon-100));
  overflow: hidden;
  position: relative;
}
.puja-media img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Badges / pills
   ========================================================================== */

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.badge-success { background: var(--success-100); color: var(--success-700); }
.badge-danger  { background: var(--danger-100);  color: var(--danger-700); }
.badge-warning { background: var(--warning-100); color: var(--warning-700); }
.badge-info    { background: var(--info-100);    color: var(--info-700); }
.badge-neutral { background: var(--ink-100);     color: var(--ink-500); }
.badge-brand   { background: var(--marigold-100);color: var(--marigold-700); }
.badge-gold    { background: var(--gold-200);    color: var(--maroon-800); }

/* ==========================================================================
   Forms
   ========================================================================== */

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: var(--space-2);
}
.form-hint {
  font-size: var(--text-xs);
  color: var(--ink-400);
  margin-top: var(--space-1);
}

.form-control,
.form-select {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink-900);
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 0.625rem 0.875rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--marigold-400);
  box-shadow: var(--ring);
  outline: none;
}
.form-control::placeholder { color: var(--ink-300); }
.form-control:disabled,
.form-select:disabled { background: var(--ivory-2); color: var(--ink-400); }

textarea.form-control { min-height: 110px; resize: vertical; }

.form-check-input {
  border-color: var(--ink-300);
  width: 1.05em; height: 1.05em;
  margin-top: 0.2em;
}
.form-check-input:checked {
  background-color: var(--marigold-500);
  border-color: var(--marigold-500);
}
.form-check-input:focus { box-shadow: var(--ring); border-color: var(--marigold-400); }
.form-check-label { font-size: var(--text-base); color: var(--ink-700); }

/* A radio rendered as a selectable panel, for payment options */
.option-card {
  display: block;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius);
  padding: var(--space-4);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease,
              box-shadow 0.15s ease;
  background: var(--white);
  margin-bottom: var(--space-3);
}
.option-card:hover { border-color: var(--marigold-400); background: var(--marigold-100); }
.option-card input { margin-right: var(--space-3); }
.option-card.selected {
  border-color: var(--marigold-500);
  background: var(--marigold-100);
  box-shadow: var(--shadow-xs);
}
.option-card .option-title {
  font-weight: 600;
  color: var(--ink-900);
  font-size: var(--text-base);
}
.option-card .option-note {
  font-size: var(--text-sm);
  color: var(--ink-500);
  margin: var(--space-1) 0 0 1.9rem;
}

.input-group-text {
  background: var(--ivory-2);
  border-color: var(--ink-200);
  color: var(--ink-500);
  border-radius: var(--radius);
}

/* ==========================================================================
   Tables
   ========================================================================== */

.table-wrap {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.table-scroll { overflow-x: auto; }

.table {
  margin: 0;
  font-size: var(--text-base);
  color: var(--ink-700);
  --bs-table-bg: transparent;
}
.table thead th {
  background: var(--ivory-2);
  color: var(--ink-500);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--ink-100);
  white-space: nowrap;
}
.table tbody td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--ink-100);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.12s ease; }
.table tbody tr:hover { background: var(--ivory); }

.table .cell-strong { font-weight: 600; color: var(--ink-900); }
.table .cell-muted { color: var(--ink-400); font-size: var(--text-sm); }
.cell-numeric { font-variant-numeric: tabular-nums; text-align: right; }

.thumb-sm {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--ivory-2);
}

/* ==========================================================================
   Alerts / flash
   ========================================================================== */

.flash-stack {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  right: 16px;
  z-index: 1080;
  width: min(380px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-left: 4px solid var(--ink-300);
  box-shadow: var(--shadow);
  font-size: var(--text-base);
  animation: flash-in 0.25s ease;
}
@keyframes flash-in {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.flash-success { border-left-color: var(--success-700); }
.flash-danger  { border-left-color: var(--danger-700); }
.flash-warning { border-left-color: var(--warning-700); }
.flash-info    { border-left-color: var(--info-700); }
.flash-icon { font-size: 1.05rem; line-height: 1.4; }
.flash-close {
  margin-left: auto;
  background: none; border: 0;
  color: var(--ink-300);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.flash-close:hover { color: var(--ink-500); }

.alert {
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-base);
}
.alert-warning { background: var(--warning-100); border-color: #F0DDAE; color: var(--warning-700); }
.alert-info    { background: var(--info-100);    border-color: #C5DEEC; color: var(--info-700); }
.alert-success { background: var(--success-100); border-color: #BFE3CF; color: var(--success-700); }
.alert-danger  { background: var(--danger-100);  border-color: #F2C9C6; color: var(--danger-700); }
.alert-secondary { background: var(--ivory-2); border-color: var(--ink-100); color: var(--ink-700); }

/* ==========================================================================
   Empty states
   ========================================================================== */

.empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-5);
  color: var(--ink-500);
}
.empty-state .empty-icon {
  font-size: 2.75rem;
  margin-bottom: var(--space-4);
  opacity: 0.55;
  display: block;
}
.empty-state h3 {
  font-size: var(--text-lg);
  color: var(--ink-700);
  margin-bottom: var(--space-2);
}
.empty-state p { max-width: 44ch; margin: 0 auto var(--space-5); }

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination { gap: var(--space-1); }
.page-link {
  border: 1px solid var(--ink-200);
  color: var(--ink-700);
  border-radius: var(--radius-sm) !important;
  padding: 0.45rem 0.8rem;
  font-size: var(--text-sm);
  font-weight: 600;
}
.page-link:hover { background: var(--marigold-100); color: var(--maroon-700); border-color: var(--marigold-400); }
.page-item.active .page-link {
  background: var(--maroon-700);
  border-color: var(--maroon-700);
  color: var(--white);
}
.page-item.disabled .page-link { color: var(--ink-300); background: var(--ivory-2); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: linear-gradient(160deg, var(--maroon-900), #330E11);
  color: rgba(255,255,255,0.72);
  padding: var(--space-8) 0 var(--space-5);
  margin-top: var(--space-9);
  font-size: var(--text-sm);
}
.site-footer h5 {
  color: var(--white);
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.site-footer a { color: rgba(255,255,255,0.72); }
.site-footer a:hover { color: var(--marigold-400); }
.site-footer .footer-brand {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--white);
  margin-bottom: var(--space-3);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: var(--space-2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
}

/* ==========================================================================
   WhatsApp float
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 1040;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}
.whatsapp-float .wa-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25D366;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.42);
  transition: transform 0.2s ease;
}
.whatsapp-float .wa-icon svg { width: 29px; height: 29px; fill: #fff; }
.whatsapp-float:hover .wa-icon { transform: scale(1.07); }
.whatsapp-float .wa-label {
  background: var(--white);
  color: var(--ink-700);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}
.whatsapp-float:hover .wa-label { opacity: 1; transform: translateX(0); }
@media (max-width: 576px) {
  .whatsapp-float { bottom: 16px; right: 16px; }
  .whatsapp-float .wa-label { display: none; }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.stack-sm > * + * { margin-top: var(--space-2); }
.stack   > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }

.rupee { font-variant-numeric: tabular-nums; }
.muted-line { color: var(--ink-400); font-size: var(--text-sm); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--maroon-800);
  color: var(--white);
  padding: var(--space-3) var(--space-4);
  z-index: 2000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--white); }

@media print {
  .site-header, .site-footer, .whatsapp-float, .flash-stack,
  .no-print { display: none !important; }
  body { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
