/* ECOMASS SOLUTION Premium Industrial & Commercial Kitchen Design System */
:root {
  --color-primary: #E5A910;
  --color-primary-hover: #D49B0B;
  --color-primary-active: #B47D08;
  --color-primary-light: #FEF3C7;
  --color-primary-dark: #92400E;
  --color-gold-gradient: linear-gradient(135deg, #FAD961 0%, #E5A910 50%, #B87B07 100%);
  --color-gold-metallic: linear-gradient(180deg, #FDF0A6 0%, #E5A910 50%, #A16A00 100%);
  --color-navy: #0E1E38;
  --color-navy-dark: #081120;
  --color-slate: #131E29;
  --color-text-main: #111827;
  --color-text-muted: #6B7280;
  --color-border: #E5E7EB;
  --color-bg-light: #F9FAFB;
  --color-green: #25D366;
  --radius-pill: 9999px;
  --radius-card: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text-main);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* ========================================================
   LUXURY METALLIC GOLD LOGO PRELOADER
   ======================================================== */
.ecomass-preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #111827 0%, #080c14 100%);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease;
  user-select: none;
}

.ecomass-preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
}

.preloader-logo-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.preloader-glow-halo {
  position: absolute;
  inset: -18px;
  background: radial-gradient(circle, rgba(229, 169, 16, 0.35) 0%, rgba(229, 169, 16, 0.08) 55%, transparent 75%);
  border-radius: 50%;
  animation: haloPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

.preloader-orbit-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: #e5a910;
  border-right-color: rgba(229, 169, 16, 0.4);
  animation: orbitSpin 1.8s linear infinite;
  box-shadow: 0 0 14px rgba(229, 169, 16, 0.35);
}

.preloader-orbit-ring.ring-reverse {
  inset: -13px;
  border-top-color: transparent;
  border-bottom-color: #fde047;
  border-left-color: rgba(253, 224, 71, 0.25);
  animation: orbitSpinRev 2.4s linear infinite;
  opacity: 0.8;
}

.preloader-emblem {
  width: 80px;
  height: 80px;
  object-fit: contain;
  position: relative;
  z-index: 3;
  animation: emblemFloat 2.4s ease-in-out infinite;
  filter: drop-shadow(0 6px 18px rgba(229, 169, 16, 0.5));
}

.preloader-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 22px;
}

.preloader-brand-title {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #b47d08 0%, #e5a910 25%, #fff5ba 50%, #e5a910 75%, #b47d08 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 2.2s infinite linear;
}

.preloader-brand-subtitle {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #94a3b8;
  opacity: 0.85;
}

.preloader-progress-track {
  width: 140px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.preloader-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #b47d08, #e5a910, #fef08a);
  animation: progressFill 1.3s ease-in-out infinite;
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(229, 169, 16, 0.7);
}

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

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

@keyframes haloPulse {
  0%, 100% { transform: scale(0.96); opacity: 0.5; }
  50% { transform: scale(1.14); opacity: 1; }
}

@keyframes emblemFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-3px) scale(1.03); }
}

@keyframes goldShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@keyframes progressFill {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

/* ========================================================
   PAGE TRANSITIONS & SMOOTH ENTRANCES
   ======================================================== */
.page-fade-in {
  animation: pageEntrance 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageEntrance {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================================
   BUTTONS & MICRO-INTERACTIONS
   ======================================================== */
.btn-red, .btn-gold {
  background: linear-gradient(135deg, #F6D365 0%, #E5A910 60%, #B87B07 100%);
  color: #1A1402;
  border-radius: var(--radius-pill);
  font-weight: 700;
  border: 1px solid rgba(180, 125, 8, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(229, 169, 16, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}

/* Light sheen reflection sweep */
.btn-red::after, .btn-gold::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(30deg);
  pointer-events: none;
  opacity: 0;
}

.btn-red:hover::after, .btn-gold:hover::after {
  animation: lightSweep 0.75s ease-out;
  opacity: 1;
}

@keyframes lightSweep {
  0% { left: -60%; }
  100% { left: 140%; }
}

.btn-red:hover, .btn-gold:hover {
  background: linear-gradient(135deg, #FDE047 0%, #E5A910 100%);
  color: #000000;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(229, 169, 16, 0.42);
}

.btn-red:active, .btn-gold:active, .btn-outline-red:active, .btn-navy:active {
  transform: scale(0.97) !important;
  transition: transform 0.1s ease !important;
}

.btn-outline-red, .btn-outline-gold {
  border: 1.5px solid var(--color-primary);
  color: #92400E;
  background-color: transparent;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.btn-outline-red:hover, .btn-outline-gold:hover {
  background: var(--color-primary);
  color: #1A1402;
  box-shadow: 0 4px 14px rgba(229, 169, 16, 0.3);
  transform: translateY(-1px);
}

.btn-navy {
  background-color: var(--color-navy);
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.btn-navy:hover {
  background-color: var(--color-navy-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(14, 30, 56, 0.25);
}

/* ========================================================
   CARDS & HOVER ELEVATIONS
   ======================================================== */
.ka-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  will-change: transform, box-shadow;
}
.ka-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -8px rgba(229, 169, 16, 0.16), 0 4px 12px -2px rgba(14, 30, 56, 0.05);
  border-color: #FCD34D;
}
.ka-card img {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.ka-card:hover img {
  transform: scale(1.05);
}

.cat-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.2s ease;
}
.cat-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 20px -4px rgba(229, 169, 16, 0.22);
  transform: translateY(-3px);
}

.search-pill {
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.search-pill:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(229, 169, 16, 0.22);
}

/* ========================================================
   ADMIN DATA TABLES & FLOATING DRAWERS
   ======================================================== */
tbody tr {
  transition: background-color 0.2s ease;
}
tbody tr:hover {
  background-color: rgba(254, 243, 199, 0.35) !important;
}

#bulkDrawer {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Off-canvas Cart Drawer */
.cart-drawer-backdrop {
  background: rgba(14, 30, 56, 0.6);
  backdrop-filter: blur(3px);
  transition: opacity 0.3s ease;
}

/* Spec Table zebra styling */
.spec-table tr:nth-child(even) {
  background-color: #fffdf5;
}

/* WhatsApp floating widget */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wa-float:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}
