/* css/custom.css */
/* Mobile Responsive & Clean Layout Rules */
html, body {
  overflow-x: clip;
  max-width: 100%;
}

/* Sticky Cart Sidebar */
#cart-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 125px;
  align-self: flex-start;
}

/* Glass panel background */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
}

/* Glow Cards hover animations */
.glow-card {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.glow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(249, 87, 42, 0.18);
  border-color: rgba(249, 87, 42, 0.35);
}

/* Glowing buttons (Executive Navy & Amber Gold Theme matching Logo) */
.glow-button {
  background: linear-gradient(135deg, #0C1730 0%, #003466 60%, #004b93 100%);
  box-shadow: 0 4px 18px 0 rgba(12, 23, 48, 0.35);
  border: 1px solid rgba(246, 132, 3, 0.4);
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(12, 23, 48, 0.55);
  background: linear-gradient(135deg, #002244 0%, #0C1730 100%);
  color: #ffffff;
  opacity: 1;
}

/* Secondary Gold Button */
.accent-button {
  background: linear-gradient(135deg, #F68403 0%, #FFD166 50%, #d97706 100%);
  box-shadow: 0 4px 18px 0 rgba(246, 132, 3, 0.35);
  color: #0C1730;
  font-weight: 800;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accent-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(246, 132, 3, 0.5);
  background: linear-gradient(135deg, #FFD166 0%, #F68403 100%);
  color: #0C1730;
  opacity: 1;
}

/* Navy / Gold Glow Button */
.indigo-glow-button {
  background: linear-gradient(135deg, #0C1730 0%, #F68403 100%);
  box-shadow: 0 4px 18px 0 rgba(12, 23, 48, 0.3);
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.indigo-glow-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(12, 23, 48, 0.5);
  opacity: 1;
}

/* Brand gradient text */
.brand-text-gradient {
  background: linear-gradient(135deg, #0C1730 0%, #004b93 50%, #F68403 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==============================================================================
   EXECUTIVE DARK NAVY & GOLD FOOTER THEME (Matches Image 2)
   ============================================================================== */
.footer-section {
  background: linear-gradient(180deg, #0C1730 0%, #060e1e 100%) !important;
  border-top: 4px solid #F68403 !important;
  color: #CBD5E1 !important;
  position: relative;
  padding: 60px 0 25px 0;
  overflow: hidden;
}

.footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 209, 102, 0.4), transparent);
  pointer-events: none;
}

.footer-section::after {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(246, 132, 3, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.footer-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.65rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3.5px;
  background: linear-gradient(90deg, #F68403, #FFD166);
  border-radius: 2px;
}

.footer-text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #CBD5E1 !important;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links li a {
  color: #CBD5E1 !important;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.footer-links li a:hover {
  color: #FFD166 !important;
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0.85rem;
  color: #CBD5E1 !important;
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F68403;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.25s ease;
}

.footer-contact-item:hover .footer-contact-icon {
  background: rgba(246, 132, 3, 0.2);
  border-color: #F68403;
  color: #FFD166;
  transform: scale(1.05);
}

.footer-contact-item a {
  color: #CBD5E1 !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-item a:hover {
  color: #FFD166 !important;
  text-decoration: underline;
}

.bottom-content {
  background: rgba(6, 14, 30, 0.85) !important;
  border: 1px solid rgba(255, 209, 102, 0.25) !important;
  border-radius: 14px;
  padding: 18px 22px;
  backdrop-filter: blur(8px);
}

/* ==============================================================================
   HIDE STOREFRONT FLOATING WIDGETS INSIDE ADMIN AREA
   ============================================================================== */
body:has(#desktop-sidebar) .callBtnFixed,
body:has(#desktop-sidebar) .quickImgFixed,
body:has(#desktop-sidebar) #floating-side-cart,
body:has(#desktop-sidebar) #cart-drawer,
body:has(#desktop-sidebar) #cart-drawer-overlay,
#desktop-sidebar ~ * .callBtnFixed,
#desktop-sidebar ~ * .quickImgFixed,
#desktop-sidebar ~ * #floating-side-cart,
#desktop-sidebar ~ * #cart-drawer,
#desktop-sidebar ~ * #cart-drawer-overlay {
  display: none !important;
}

/* Custom fade animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom pulsing glow */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.9; }
}

.animate-pulse-glow {
  animation: pulseGlow 3s infinite ease-in-out;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #080e1e;
}
::-webkit-scrollbar-thumb {
  background: #0e2246;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #F68403;
}

/* Floating Sidebar styles (Bottom Left) */
.floating-sidebar {
  position: fixed;
  bottom: 24px;
  left: 20px;
  top: auto;
  transform: none;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}
.floating-sidebar.left {
  left: 20px;
}
.floating-sidebar.right {
  right: 20px;
}
.floating-sidebar-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  border: 2px solid #ffffff;
}
.floating-sidebar-icon:hover {
  transform: scale(1.12);
}

/* Mobile Screen: Vertically center WhatsApp & Call icons on the screen edge (avoids overlap with sticky checkout bar) */
@media (max-width: 768px) {
  .floating-sidebar {
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    gap: 10px !important;
    z-index: 45 !important;
  }
  .floating-sidebar.left {
    left: 10px !important;
  }
  .floating-sidebar.right {
    right: 10px !important;
  }
}

/* Auto hide placeholder on focus globally across the entire project */
input:focus::placeholder,
textarea:focus::placeholder {
  color: transparent !important;
  opacity: 0 !important;
}

/* ════════════════════════════════════════════════════════
   INVOICE STYLING (CLEAN WHITE BACKGROUND & BLACK FONT & TABLE BORDERS)
   ════════════════════════════════════════════════════════ */
.inv-card {
  background: #ffffff;
  overflow: visible !important;
  border: 1px solid #000000 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #000000 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Tamil", "Mukta Malar", Arial, sans-serif;
}
.inv-card,
.inv-card * {
  box-sizing: border-box !important;
}
.inv-card p,
.inv-card div,
.inv-card span,
.inv-card strong,
.inv-card td,
.inv-card th,
.inv-card h4,
.inv-card h5 {
  color: #000000;
}
.inv-head {
  background: #ffffff;
  color: #000000;
  padding: 14px 18px 12px;
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 14px;
  position: relative;
  border-bottom: 1px solid #000000;
  box-sizing: border-box !important;
}
.inv-head .co-name {
  font-size: 20px; font-weight: 900;
  letter-spacing: -.02em; margin: 0 0 3px; line-height: 1.1;
  color: #000000;
}
.inv-head .co-sub {
  font-size: 10.5px; font-weight: 800; color: #1e293b;
  text-transform: uppercase; letter-spacing: .08em;
}
.inv-head .co-detail {
  margin-top: 6px; font-size: 10.5px; color: #1e293b; line-height: 1.5; font-weight: 600;
}
.inv-head .co-detail strong {
  color: #000000;
}
.inv-meta { text-align: right; }
.inv-meta .inv-id {
  font-size: 18px; font-weight: 900;
  font-family: monospace; line-height: 1.1;
  color: #000000;
}
.inv-meta .inv-date { font-size: 10.5px; color: #1e293b; margin-top: 4px; font-weight: 600; }
.inv-meta .inv-badge {
  display: inline-block; margin-top: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 9.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  background: #ffffff;
  border: 1px solid #000000;
  color: #000000;
}

/* Status row */
.inv-status-row {
  display: flex; gap: 8px;
  padding: 8px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #000000;
  flex-wrap: wrap; align-items: center;
  box-sizing: border-box !important;
}
.schip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 999px;
  font-size: 9.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  border: 1px solid #000000;
  background: #ffffff;
  color: #000000;
}
.schip-purple { background:#ffffff; color:#000000; border-color:#000000; }
.schip-mid    { background:#ffffff; color:#000000; border-color:#000000; }
.schip-light  { background:#ffffff; color:#000000; border-color:#000000; }
.schip-dot { width:5px;height:5px;border-radius:50%;background:#000000;flex-shrink:0; }

/* Parties */
.inv-parties {
  display: flex !important;
  flex-direction: row !important;
  border-bottom: 1px solid #000000;
  box-sizing: border-box !important;
  width: 100% !important;
}
.inv-party {
  flex: 1 1 50% !important;
  width: 50% !important;
  max-width: 50% !important;
  padding: 8px 16px;
  box-sizing: border-box !important;
}
.inv-party:first-child { border-right: 1px solid #000000 !important; }
.inv-party-lbl {
  font-size: 9px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em;
  color: #000000; margin-bottom: 3px;
}
.inv-party-name {
  font-size: 13px; font-weight: 900; color: #000000; margin-bottom: 2px;
}
.inv-party-detail {
  font-size: 10px; color: #1e293b; font-weight: 600; line-height: 1.45;
}
.inv-party-detail span { color: #000000; font-weight: 700; }

/* Items table */
.inv-tbl-wrap { padding: 6px 16px 8px; box-sizing: border-box !important; }
.inv-tbl-wrap h4 {
  font-size: 10px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .08em;
  color: #000000; margin: 0 0 6px;
}
table.inv-tbl {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse !important;
  font-size: 10px;
  border: 1px solid #000000 !important;
  table-layout: fixed !important;
  box-sizing: border-box !important;
}
table.inv-tbl thead tr {
  background: #f8fafc;
  color: #000000;
}
table.inv-tbl th {
  padding: 5px 6px;
  font-size: 9px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .05em;
  white-space: nowrap;
  color: #000000;
  background: #f8fafc;
  border: 1px solid #000000 !important;
  box-sizing: border-box !important;
}
table.inv-tbl tbody tr:nth-child(even) { background: #fafafa; }
table.inv-tbl tbody tr:hover { background: #f1f5f9; }
table.inv-tbl td {
  padding: 4.5px 6px;
  border: 1px solid #000000 !important;
  color: #000000; font-weight: 600;
  box-sizing: border-box !important;
}
table.inv-tbl td.num    { text-align: right; font-family: monospace; color: #000000; font-weight: 700; white-space: nowrap; }
table.inv-tbl td.center { text-align: center; color: #000000; font-weight: 700; white-space: nowrap; }
table.inv-tbl td.name   { font-weight: 700; color: #000000; word-break: break-word; }
.strike { text-decoration: line-through; color: #64748b; font-size: 9.5px; }
.disc-pct { color: #000000; font-weight: 800; }

.inv-tbl-wrap {
  page-break-inside: auto !important;
  break-inside: auto !important;
}

table.inv-tbl {
  page-break-inside: auto !important;
  break-inside: auto !important;
}

.inv-head, .inv-parties, .inv-footer-grid, .inv-strip, table.inv-tbl tr {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}

.inv-footer-grid {
  display: flex !important;
  flex-direction: row !important;
  border-top: 1px solid #000000;
  page-break-inside: avoid !important;
  break-inside: avoid !important;
  box-sizing: border-box !important;
  width: 100% !important;
}
.inv-payment-qr-block, .inv-notes {
  flex: 1 1 56% !important;
  width: 56% !important;
  max-width: 56% !important;
  padding: 8px 14px !important;
  border-right: 1px solid #000000 !important;
  box-sizing: border-box !important;
}
.inv-notes h5 {
  font-size: 9.5px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .08em;
  color: #000000;
  margin: 0 0 4px;
}
.inv-notes-text {
  font-size: 9.5px; color: #1e293b; line-height: 1.5; font-weight: 600;
}

.inv-totals {
  flex: 1 1 44% !important;
  width: 44% !important;
  max-width: 44% !important;
  padding: 8px 14px !important;
  box-sizing: border-box !important;
}
.trow {
  display: flex; justify-content: space-between;
  align-items: center; font-size: 10.5px;
  padding: 2.5px 0; color: #1e293b; font-weight: 600;
}
.trow .tv { font-family: monospace; font-weight: 800; color: #000000; }
.trow.savings .tv { color: #000000; font-weight: 900; }
.trow.grand {
  margin-top: 6px; padding: 6px 10px;
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 4px; color: #000000;
  font-size: 11.5px; font-weight: 900;
}
.trow.grand .tv { color: #000000; font-size: 14px; font-weight: 900; }

/* Footer strip */
.inv-strip {
  background: #ffffff;
  color: #000000;
  border-top: 1px solid #000000;
  padding: 8px 18px;
  font-size: 9.5px; font-weight: 700;
  display: flex; justify-content: space-between;
  align-items: center;
  box-sizing: border-box !important;
}
.inv-strip .note { font-style: italic; color: #000000; font-size: 9px; }
.inv-strip .seal, .inv-strip .ref { font-family: monospace; color: #000000; font-size: 9px; }

/* Screen view: Hide print area completely */
@media screen {
  .print-area-wrapper:not(.pdf-rendering-active) {
    display: none !important;
  }
}

.print-area-wrapper.pdf-rendering-active {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 794px !important;
  max-width: 794px !important;
  height: auto !important;
  overflow: visible !important;
  opacity: 1 !important;
  z-index: 999999 !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

#invoice-pdf-sandbox {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 794px !important;
  min-width: 794px !important;
  max-width: 794px !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 9999999 !important;
  background: #ffffff !important;
  color: #000000 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

#invoice-pdf-sandbox .inv-card {
  width: 794px !important;
  min-width: 794px !important;
  max-width: 794px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #000000 !important;
  background: #ffffff !important;
  color: #000000 !important;
  box-sizing: border-box !important;
  display: block !important;
}

.print-area-container {
  width: 100% !important;
  max-width: 100% !important;
  background: #ffffff !important;
  padding: 0 !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

/* Page margin setup for clean A4 multi-page document pagination */
@page {
  size: A4 portrait;
  margin: 5mm 5mm;
}

/* Force clean white background, black fonts, table borders, and multi-page flow in print view */
@media print {
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    background: #ffffff !important;
    color: #000000 !important;
    display: block !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Completely hide all site UI elements from print */
  header,
  footer,
  nav,
  aside,
  form,
  button,
  select,
  input,
  .print\:hidden,
  .print-hidden,
  [class*="print:hidden"],
  [class*="print-hidden"],
  .marquee-top-bar,
  #mobile-navigation-drawer,
  #mobile-menu,
  #cart-drawer,
  #cart-drawer-overlay,
  #whatsapp-sticky,
  #call-sticky,
  .callBtnFixed,
  .quickImgFixed,
  .spark-particle,
  .floating-sidebar,
  .floating-side-cart,
  #floating-side-cart,
  #site-top-fixed,
  #header-spacer,
  #mobile-sticky-checkout-bar,
  #mobile-cart-modal,
  #quick-view-modal,
  #video-player-modal,
  #image-lightbox,
  #global-image-lightbox,
  #desktop-sidebar,
  #mobile-sidebar,
  .ac-sidebar,
  .ac-banner,
  .site-footer,
  .cc-head,
  .tr-card-head,
  .tr-steps,
  .tr-info,
  .tr-chips,
  .tr-form,
  .tr-card-actions {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Reset layout containers so they don't constrain or add extra page breaks */
  body,
  main:not(.print\:hidden):not(.print-hidden):not([class*="print:hidden"]),
  .flex-grow:not(.print\:hidden):not(.print-hidden):not([class*="print:hidden"]),
  .flex-1:not(.print\:hidden):not(.print-hidden):not([class*="print:hidden"]),
  div[class*="min-h-screen"]:not(.print\:hidden):not(.print-hidden):not([class*="print:hidden"]),
  div[class*="h-screen"]:not(.print\:hidden):not(.print-hidden):not([class*="print:hidden"]),
  div[class*="max-w-7xl"]:not(.print\:hidden):not(.print-hidden):not([class*="print:hidden"]) {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  /* Re-assert hidden status on all print-hidden elements to ensure cascade victory */
  .print\:hidden,
  .print-hidden,
  [class*="print:hidden"],
  [class*="print-hidden"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Show only the invoice print areas */
  .print-area-wrapper {
    position: static !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: auto !important;
    pointer-events: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }
  .print-area-container {
    position: static !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: auto !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: #ffffff !important;
    height: auto !important;
    overflow: visible !important;
  }
  .inv-card {
    border: 1.5px solid #000000 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    background: #ffffff !important;
    color: #000000 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
    box-sizing: border-box !important;
  }
  .inv-head {
    background: #ffffff !important;
    color: #000000 !important;
    border-bottom: 1px solid #000000 !important;
    padding: 12px 16px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .inv-head .co-name,
  .inv-head .co-sub,
  .inv-head .co-detail,
  .inv-head .co-detail strong,
  .inv-meta .inv-id,
  .inv-meta .inv-date {
    color: #000000 !important;
  }
  .inv-meta .inv-badge {
    background: #ffffff !important;
    border: 1px solid #000000 !important;
    color: #000000 !important;
  }
  .inv-status-row {
    background: #ffffff !important;
    border-bottom: 1px solid #000000 !important;
    padding: 8px 16px !important;
  }
  .schip {
    border: 1px solid #000000 !important;
    background: #ffffff !important;
    color: #000000 !important;
  }
  .inv-parties {
    display: flex !important;
    flex-direction: row !important;
    border-bottom: 1px solid #000000 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    width: 100% !important;
  }
  .inv-party {
    flex: 1 1 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    padding: 8px 16px !important;
    box-sizing: border-box !important;
  }
  .inv-party:first-child {
    border-right: 1px solid #000000 !important;
  }
  .inv-party-lbl, .inv-party-name, .inv-party-detail, .inv-party-detail span {
    color: #000000 !important;
  }
  .inv-tbl-wrap {
    padding: 6px 16px 8px !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
    overflow: visible !important;
  }
  .inv-tbl-wrap h4 {
    color: #000000 !important;
    font-size: 10px !important;
    margin: 0 0 6px !important;
  }
  table.inv-tbl {
    border: 1px solid #000000 !important;
    border-collapse: collapse !important;
    width: 100% !important;
    table-layout: fixed !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
  }
  table.inv-tbl thead {
    display: table-header-group !important;
  }
  table.inv-tbl thead tr {
    background: #f8fafc !important;
  }
  table.inv-tbl th {
    color: #000000 !important;
    background: #f8fafc !important;
    border: 1px solid #000000 !important;
    padding: 5px 6px !important;
    font-size: 9px !important;
  }
  table.inv-tbl tbody tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  table.inv-tbl td {
    color: #000000 !important;
    border: 1px solid #000000 !important;
    padding: 4.5px 6px !important;
    font-size: 10px !important;
  }
  table.inv-tbl td.name, table.inv-tbl td.num, table.inv-tbl td.center {
    color: #000000 !important;
  }
  .disc-pct {
    color: #000000 !important;
  }
  .strike {
    color: #64748b !important;
  }
  .inv-footer-grid {
    display: flex !important;
    flex-direction: row !important;
    border-top: 1px solid #000000 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    width: 100% !important;
  }
  .inv-payment-qr-block, .inv-notes {
    flex: 1 1 56% !important;
    width: 56% !important;
    max-width: 56% !important;
    border-right: 1px solid #000000 !important;
    padding: 8px 14px !important;
    box-sizing: border-box !important;
  }
  .inv-notes h5, .inv-notes-text {
    color: #000000 !important;
  }
  .inv-totals {
    flex: 1 1 44% !important;
    width: 44% !important;
    max-width: 44% !important;
    padding: 8px 14px !important;
    box-sizing: border-box !important;
  }
  .trow, .trow .tv, .trow.savings .tv {
    color: #000000 !important;
  }
  .trow.grand {
    background: #ffffff !important;
    border: 1px solid #000000 !important;
    color: #000000 !important;
    padding: 6px 10px !important;
  }
  .trow.grand .tv {
    color: #000000 !important;
  }
  .inv-strip {
    background: #ffffff !important;
    border-top: 1px solid #000000 !important;
    color: #000000 !important;
    padding: 6px 16px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .inv-strip .note,
  .inv-strip .seal,
  .inv-strip .ref {
    color: #000000 !important;
  }
  .inv-card * {
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }
}

/* ════════════════════════════════════════════════════════
   ELITE CRACKERS NAVY, FLAME ORANGE & GOLD THEME
   ════════════════════════════════════════════════════════ */
:root {
  --sd-navy: #0e2246;
  --sd-navy-dark: #07152b;
  --sd-navy-deep: #040d1a;
  --sd-navy-light: #1a365d;
  
  --sd-orange: #f9572a;
  --sd-orange-dark: #ea580c;
  --sd-orange-light: #fb923c;
  
  --sd-gold: #f59e0b;
  --sd-gold-dark: #d97706;
  --sd-amber: #fbbf24;
  --festive-gold: #f59e0b;

  /* Backward Compatibility Aliases */
  --sd-green: #0e2246;
  --sd-green-dark: #07152b;
  --sd-green-deep: #040d1a;
  --lotus-pink: #f9572a;
  --lotus-pink-light: #fb923c;
  --lotus-pink-deep: #ea580c;
}

/* Navy utilities */
.bg-sd-navy { background-color: #0e2246 !important; }
.bg-sd-navy-dark { background-color: #07152b !important; }
.bg-sd-navy-deep { background-color: #040d1a !important; }
.text-sd-navy { color: #0e2246 !important; }
.text-sd-navy-dark { color: #07152b !important; }
.border-sd-navy { border-color: #0e2246 !important; }

/* Flame Orange utilities */
.bg-sd-orange, .bg-lotus-pink { background-color: #f9572a !important; }
.bg-sd-orange-dark, .bg-lotus-pink-deep { background-color: #ea580c !important; }
.bg-sd-orange-light, .bg-lotus-pink-light { background-color: #fb923c !important; }
.text-sd-orange, .text-lotus-pink { color: #f9572a !important; }
.text-sd-orange-dark { color: #ea580c !important; }
.text-sd-orange-light, .text-lotus-pink-light { color: #fb923c !important; }
.border-sd-orange, .border-lotus-pink { border-color: #f9572a !important; }

/* Fireworks Gold utilities */
.bg-sd-gold { background-color: #f59e0b !important; }
.text-sd-gold { color: #f59e0b !important; }
.border-sd-gold { border-color: #f59e0b !important; }

/* Legacy Class Support mapped to brand */
.bg-sd-green { background-color: #0e2246 !important; }
.bg-sd-green-dark { background-color: #07152b !important; }
.bg-sd-green-deep { background-color: #040d1a !important; }
.text-sd-green { color: #0e2246 !important; }
.text-sd-green-dark { color: #07152b !important; }
.border-sd-green { border-color: #0e2246 !important; }

/* Gradient Buttons & Cards */
.btn-sd-flame,
.btn-sd-emerald,
.btn-lotus-pink {
  background: linear-gradient(135deg, #f9572a 0%, #ea580c 50%, #f59e0b 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(249, 87, 42, 0.35) !important;
  transition: all 0.25s ease !important;
}
.btn-sd-flame:hover,
.btn-sd-emerald:hover,
.btn-lotus-pink:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(249, 87, 42, 0.5) !important;
}

.btn-sd-navy {
  background: linear-gradient(135deg, #0e2246 0%, #1a365d 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(14, 34, 70, 0.35) !important;
  transition: all 0.25s ease !important;
}
.btn-sd-navy:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(14, 34, 70, 0.5) !important;
}

/* Category Filter Active Pill */
.cat-pill-active {
  background: linear-gradient(135deg, #0e2246 0%, #1a365d 100%) !important;
  color: #ffffff !important;
  border-color: #0e2246 !important;
  box-shadow: 0 4px 12px rgba(14, 34, 70, 0.3) !important;
}
.cat-pill-hover:hover {
  border-color: #f9572a !important;
  color: #f9572a !important;
  background-color: #fff7ed !important;
}

/* Lightbox Modal & Image Popup Styles */
#quick-view-modal.hidden {
  display: none !important;
}
#quick-view-modal:not(.hidden) {
  display: flex !important;
}

@keyframes scaleUp {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scaleUp {
  animation: scaleUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.product-img-wrap {
  cursor: pointer;
  user-select: none;
}
.product-img-wrap:hover img {
  transform: scale(1.08);
}

/* Number input clean styling (hide ugly browser spinner arrows) */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

/* Cart impact bounce animation */
@keyframes cartCatchBounce {
  0% { transform: scale(1); }
  25% { transform: scale(1.05) rotate(-1deg); }
  50% { transform: scale(0.97) rotate(1deg); }
  75% { transform: scale(1.02) rotate(0deg); }
  100% { transform: scale(1); }
}

.cart-catch-anim {
  animation: cartCatchBounce 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Badge pop counter bounce animation */
@keyframes badgePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.badge-pop-anim {
  animation: badgePop 0.3s ease-out !important;
}
