/* ============================================================
   Gausiya Enterprises - Global Application Styles
   ============================================================ */
:root {
  --ge-primary: #4f46e5;
  --ge-primary-dark: #4338ca;
  --ge-secondary: #7c3aed;
  --ge-accent: #06b6d4;
  --ge-bg: #f8fafc;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  background: var(--ge-bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ---------- Gradient helpers ---------- */
.ge-gradient {
  background: linear-gradient(135deg, var(--ge-primary) 0%, var(--ge-secondary) 100%);
}
.ge-gradient-text {
  background: linear-gradient(135deg, var(--ge-primary) 0%, var(--ge-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Cards ---------- */
.ge-card {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #eef2f7;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ge-card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.05), 0 16px 40px rgba(79, 70, 229, 0.10);
}

/* ---------- Buttons ---------- */
.ge-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: .75rem; padding: .7rem 1.25rem; font-weight: 600; font-size: .875rem;
  transition: all .2s ease; cursor: pointer; border: none; position: relative; overflow: hidden;
}
.ge-btn:active { transform: scale(.97); }
.ge-btn-primary {
  background: linear-gradient(135deg, var(--ge-primary) 0%, var(--ge-secondary) 100%);
  color: #fff; box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.ge-btn-primary:hover { box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5); filter: brightness(1.05); }
.ge-btn-outline {
  background: #fff; color: var(--ge-primary); border: 1.5px solid #c7d2fe;
}
.ge-btn-outline:hover { background: #eef2ff; }
.ge-btn-danger { background: #fee2e2; color: #dc2626; }
.ge-btn-success { background: #dcfce7; color: #16a34a; }
.ge-btn-ghost { background: transparent; color: #64748b; }
.ge-btn-ghost:hover { background: #f1f5f9; }

/* Ripple effect */
.ge-ripple { position: relative; overflow: hidden; }
.ge-ripple::after {
  content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.4);
  transform: translateX(-120%); transition: transform .5s ease; border-radius: inherit;
}
.ge-ripple:hover::after { transform: translateX(120%); }

/* ---------- Form fields ---------- */
.ge-input {
  width: 100%; border-radius: .75rem; border: 1.5px solid #e2e8f0;
  padding: .75rem 1rem; font-size: .9rem; outline: none; transition: all .2s ease;
  background: #fff; color: #1e293b;
}
.ge-input:focus { border-color: var(--ge-primary); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.ge-input.ge-error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.12); }

/* Icon inputs: force generous left/right padding so typed text never
   overlaps the icon. Higher specificity than both .ge-input and the
   Tailwind pl-11/pr-11 utilities, so it wins regardless of load order. */
.ge-input.pl-11 { padding-left: 2.75rem; }
.ge-input.pr-11 { padding-right: 2.75rem; }
.ge-label { display: block; font-size: .8rem; font-weight: 600; color: #475569; margin-bottom: .4rem; }

/* ---------- Badges ---------- */
.ge-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .7rem; border-radius: 9999px; font-size: .72rem; font-weight: 700; }

/* ---------- Skeleton loader ---------- */
.ge-skeleton {
  background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 50%, #eef2f7 75%);
  background-size: 200% 100%;
  animation: ge-shimmer 1.4s infinite;
  border-radius: .5rem;
}
@keyframes ge-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- Animations ---------- */
@keyframes ge-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.ge-fade-up { animation: ge-fade-up .45s ease both; }
@keyframes ge-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
.ge-pop { animation: ge-pop .3s ease both; }
@keyframes ge-slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.ge-slide-in { animation: ge-slide-in .35s cubic-bezier(.22,1,.36,1) both; }

/* ---------- Empty state ---------- */
.ge-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3rem 1rem; text-align: center; color: #94a3b8;
}

/* ---------- Mobile bottom nav ---------- */
.ge-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(16px);
  border-top: 1px solid #eef2f7;
  display: flex; justify-content: space-around; align-items: center;
  padding-bottom: env(safe-area-inset-bottom);
}
.ge-bottom-nav .ge-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: .55rem .25rem; color: #94a3b8; font-size: .62rem; font-weight: 600;
  transition: color .2s ease; text-decoration: none;
}
.ge-bottom-nav .ge-nav-item.active { color: var(--ge-primary); }
.ge-bottom-nav .ge-nav-item .ge-nav-icon {
  width: 1.45rem; height: 1.45rem; display: grid; place-items: center;
  border-radius: .75rem; transition: all .25s ease; font-size: .95rem;
}
.ge-bottom-nav .ge-nav-item.active .ge-nav-icon {
  background: #eef2ff; box-shadow: 0 4px 10px rgba(79,70,229,.25);
}
.ge-fab-cart {
  position: fixed; bottom: 4.8rem; right: 1rem; z-index: 49;
  width: 3.4rem; height: 3.4rem; border-radius: 1.1rem;
  background: linear-gradient(135deg, var(--ge-primary) 0%, var(--ge-secondary) 100%);
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(79,70,229,.45);
  transition: transform .2s ease; border: none; cursor: pointer;
}
.ge-fab-cart:active { transform: scale(.9); }
.ge-cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 1.25rem; height: 1.25rem;
  border-radius: 9999px; background: #ef4444; color: #fff; font-size: .68rem;
  font-weight: 700; display: grid; place-items: center; padding: 0 .25rem;
  border: 2px solid #fff;
}

/* ---------- Product cards ---------- */
.ge-product-card { position: relative; overflow: hidden; }
.ge-product-card img { transition: transform .35s ease; }
.ge-product-card:hover img { transform: scale(1.06); }
.ge-price-tag { font-weight: 800; color: var(--ge-primary); }
.ge-mrp-strike { text-decoration: line-through; color: #94a3b8; font-size: .75rem; }

/* ---------- Offer banner ---------- */
.ge-offer-banner {
  background: linear-gradient(120deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fcd34d; color: #92400e;
}

/* ---------- Chips (filter pills) ---------- */
.ge-chip {
  display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap;
  padding: .45rem .9rem; border-radius: 9999px; font-size: .76rem; font-weight: 600;
  background: #fff; border: 1px solid #e2e8f0; color: #64748b; text-decoration: none;
  transition: all .2s ease;
}
.ge-chip:hover { border-color: #c7d2fe; color: var(--ge-primary); }
.ge-chip.active { background: var(--ge-primary); border-color: var(--ge-primary); color: #fff; box-shadow: 0 4px 10px rgba(79,70,229,.25); }

/* ---------- Status badges ---------- */
.ge-status {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem; border-radius: 9999px; font-size: .7rem; font-weight: 700;
  text-transform: capitalize; white-space: nowrap;
}
.ge-status::before { content: ''; width: 6px; height: 6px; border-radius: 9999px; background: currentColor; }
.ge-status-amber { background: #fef3c7; color: #b45309; }
.ge-status-blue { background: #dbeafe; color: #1d4ed8; }
.ge-status-indigo { background: #e0e7ff; color: #4338ca; }
.ge-status-violet { background: #ede9fe; color: #6d28d9; }
.ge-status-cyan { background: #cffafe; color: #0e7490; }
.ge-status-sky { background: #e0f2fe; color: #0369a1; }
.ge-status-orange { background: #ffedd5; color: #c2410c; }
.ge-status-green { background: #d1fae5; color: #047857; }
.ge-status-red { background: #fee2e2; color: #b91c1c; }
.ge-status-rose { background: #ffe4e6; color: #be123c; }
.ge-status-slate { background: #f1f5f9; color: #475569; }

/* ---------- Status timeline dots ---------- */
.ge-status-bg-amber { background: #f59e0b; }
.ge-status-bg-blue { background: #3b82f6; }
.ge-status-bg-indigo { background: #6366f1; }
.ge-status-bg-violet { background: #8b5cf6; }
.ge-status-bg-cyan { background: #06b6d4; }
.ge-status-bg-sky { background: #0ea5e9; }
.ge-status-bg-orange { background: #f97316; }
.ge-status-bg-green { background: #10b981; }
.ge-status-bg-red { background: #ef4444; }
.ge-status-bg-rose { background: #f43f5e; }
.ge-status-bg-slate { background: #94a3b8; }

/* ---------- Payment option selector ---------- */
.ge-pay-option input:checked ~ div {
  border-color: var(--ge-primary) !important;
  background: #eef2ff;
  color: var(--ge-primary);
}

/* ---------- Checkboxes ---------- */
.ge-checkbox {
  width: 1.1rem; height: 1.1rem; accent-color: var(--ge-primary); cursor: pointer;
}
.ge-checkbox-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; color: #475569; cursor: pointer;
}

/* ---------- Table styling ---------- */
.ge-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.ge-table th {
  text-align: left; padding: .8rem 1rem; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .05em; color: #64748b; background: #f8fafc; border-bottom: 1px solid #e2e8f0;
}
.ge-table td { padding: .9rem 1rem; font-size: .85rem; color: #334155; border-bottom: 1px solid #f1f5f9; }
.ge-table tbody tr { transition: background .15s ease; }
.ge-table tbody tr:hover { background: #f8fafc; }

/* ---------- Admin sidebar ---------- */
.ge-sidebar { transition: transform .3s ease; }
.ge-sidebar-link {
  display: flex; align-items: center; gap: .75rem; padding: .68rem .9rem;
  border-radius: .75rem; color: #64748b; font-size: .86rem; font-weight: 500;
  transition: all .2s ease; text-decoration: none; margin-bottom: 2px;
}
.ge-sidebar-link:hover { background: rgba(79,70,229,.08); color: var(--ge-primary); }
.ge-sidebar-link.active { background: linear-gradient(135deg, var(--ge-primary), var(--ge-secondary)); color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,.3); }

/* ---------- Sticky search ---------- */
.ge-sticky-search { position: sticky; top: 0; z-index: 40; }

/* ---------- Install banner ---------- */
.ge-install-popup {
  position: fixed; bottom: 5.5rem; left: 1rem; right: 1rem; z-index: 60;
  background: #fff; border-radius: 1.2rem; box-shadow: 0 20px 50px rgba(15,23,42,.25);
  border: 1px solid #eef2f7; padding: 1rem;
}

@media (min-width: 768px) {
  .ge-bottom-nav, .ge-fab-cart { display: none; }
}

/* ---------- Dark mode (admin, ready) ---------- */
.dark .ge-card { background: #1e293b; border-color: #334155; }
.dark .ge-input { background: #0f172a; border-color: #334155; color: #e2e8f0; }
.dark body { background: #0f172a; }

/* ---------- Print ---------- */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
}
