/* =============================================
   Aviation Parts Portal - Luxury Design System
   Refined "Luxury Aviation" Theme (Tycon Style)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* ========== AviParts Global Design System (Premium Navy/White) ========== */
  --color-brand-navy: #002147;
  --color-brand-navy-light: #003366;
  --color-brand-blue: #0056b3;

  --color-premium-white: #FFFFFF;
  --color-premium-light: #F8FAFC;

  /* Functional Mappings */
  --color-primary: var(--color-brand-navy);
  --color-secondary: var(--color-brand-blue);
  --color-accent: var(--color-brand-navy);

  --color-text-main: #1E293B;
  /* Slate 800 - Professional readability */
  --color-text-muted: #64748B;
  /* Slate 500 */
  --color-text-light: #94A3B8;
  /* Slate 400 */

  --color-bg-body: #F1F5F9;
  /* Slate 100 - Clean background */
  --color-bg-card: var(--color-premium-white);
  --color-bg-header: var(--color-premium-white);

  /* Borders & Shadows */
  --border-color: #E2E8F0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --container-width: 1440px;
  --header-height: 90px;
}

@media (min-width: 1440px) {
  :root {
    --container-width: 1560px;
  }
}

@media (min-width: 1680px) {
  :root {
    --container-width: 1720px;
  }
}

@media (min-width: 1920px) {
  :root {
    --container-width: 1840px;
  }
}

/* ========== Theme & Mode Overrides ========== */

/* Dark Mode */
[data-mode="dark"] {
  --color-premium-dark: #F8FAFC;
  /* Swap Dark to Light in dark mode */
  --color-premium-dark-lighter: #E2E8F0;
  --color-premium-light: #1E293B;
  /* Slate 800 */
  --color-premium-white: #1E293B;
  /* Card BG -> Dark */
  --color-bg-body: #0F172A;
  /* Slate 900 */
  --color-bg-light: #1E293B;

  --color-text-main: #F8FAFC;
  /* Slate 50 */
  --color-text-muted: #94A3B8;
  /* Slate 400 */
  --color-text-light: #64748B;

  --border-color: #334155;
  /* Slate 700 */

  /* Gradients */
  --gradient-header: linear-gradient(135deg, #020617 0%, #0F172A 100%);

  /* Ensure shadows are visible on dark bg */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

/* Color Themes */
[data-theme="gold"] {
  --color-premium-gold: #C6A87C;
  --color-premium-gold-rgb: 198, 168, 124;
  --color-premium-gold-hover: #D8BE96;
  --color-premium-gold-dim: #9E8560;
  --gradient-gold: linear-gradient(135deg, #C6A87C 0%, #E0C399 100%);
}

[data-theme="navy"] {
  --color-premium-gold: #3b82f6;
  /* Modern Blue */
  --color-premium-gold-rgb: 59, 130, 246;
  --color-premium-gold-hover: #60a5fa;
  --color-premium-gold-dim: #2563eb;
  --gradient-gold: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  --color-accent: #3b82f6;
  --gradient-header: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

[data-theme="charcoal"] {
  --color-premium-gold: #94a3b8;
  /* Professional Slate */
  --color-premium-gold-rgb: 148, 163, 184;
  --color-premium-gold-hover: #cbd5e1;
  --color-premium-gold-dim: #64748b;
  --gradient-gold: linear-gradient(135deg, #334155 0%, #94a3b8 100%);
  --color-accent: #94a3b8;
  --gradient-header: linear-gradient(135deg, #0f172a 0%, #334155 100%);
}

[data-theme="burgundy"] {
  --color-premium-gold: #fb7185;
  /* Soft Burgundy/Rose */
  --color-premium-gold-rgb: 251, 113, 133;
  --color-premium-gold-hover: #fda4af;
  --color-premium-gold-dim: #e11d48;
  --gradient-gold: linear-gradient(135deg, #881337 0%, #fb7185 100%);
  --color-accent: #fb7185;
  --gradient-header: linear-gradient(135deg, #4c0519 0%, #881337 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-body);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

main[role="main"] {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-premium-dark);
  font-weight: 700;
  margin-top: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-premium-gold);
}

/* ========== Layout Utilities ========== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

/* ========== Component: Header V2 (Clean Premium Corporate) ========== */
.site-header-v2 {
  min-height: 84px;
  height: 88px;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Global Authenticated Header Baseline */
.global-page-header {
  height: 76px !important;
  min-height: 76px !important;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  padding: 0 24px;
  box-sizing: border-box;
  width: 100%;
}

.global-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

.global-header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.global-header-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.global-header-nav {
  display: flex;
  align-items: center;
}

.global-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.global-nav-links li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.global-nav-links li a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.global-nav-links li a:hover,
.global-nav-links li a.active {
  color: #C41E3A !important;
}

.global-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.global-hdr-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #002147;
  padding: 0;
  position: relative;
  text-decoration: none;
}

.global-hdr-icon:hover {
  color: #C41E3A;
}

/* Default Desktop Controls State (Hidden on Desktop >= 992px, Visible on Mobile < 992px) */
@media (min-width: 992px) {
  .mobile-nav-drawer,
  .mobile-nav-backdrop,
  .mobile-header-controls,
  .mobile-hamburger-btn {
    display: none !important;
  }

  .desktop-only-nav,
  .desktop-only-actions {
    display: flex !important;
  }

  .desktop-only-logout-form {
    display: inline-flex !important;
  }
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
}

.brand-logo a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
}

.brand-logo img,
.global-header-brand img {
  height: 70px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--color-brand-navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.2rem;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-brand-navy);
  letter-spacing: -0.5px;
}

.logo-text .text-thin {
  font-weight: 300;
  color: var(--color-brand-blue);
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.main-nav .nav-links,
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 28px;
  height: 100%;
}

.nav-links>li {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

.nav-links a,
.nav-logout-btn {
  font-family: var(--font-body), 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: color 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  padding: 0;
  margin: 0;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.nav-links>li>a:hover,
.nav-logout-btn:hover {
  color: #C41E3A;
}

.nav-links>li>a.active {
  color: #C41E3A;
}

.nav-links>li>a::after,
.nav-logout-btn::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  width: 100%;
  height: 2.5px;
  background-color: #C41E3A;
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-links>li>a.nav-dropdown-toggle::after {
  right: 18px;
  width: calc(100% - 18px);
}

.nav-links>li>a.active::after,
.nav-links>li>a:hover::after,
.nav-logout-btn:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Ensure dropdown submenu items never render header underlines */
.nav-sub-menu a::after,
.nav-sub-menu li a::after,
.nav-sub-menu li a:hover::after,
.nav-sub-menu li a.active::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  margin-left: 20px;
  flex-shrink: 0;
}

.btn-quote {
  background-color: #ffffff;
  color: #000000 !important;
  border: 1.5px solid #cbd5e1;
  height: 42px;
  padding: 0 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-quote:hover {
  background-color: #C41E3A !important;
  color: #ffffff !important;
  border-color: #C41E3A !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(196, 30, 58, 0.25) !important;
}

.btn-primary-navy {
  background-color: #ffffff;
  color: #000000 !important;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 11px 26px;
  border-radius: 6px;
  border: 2px solid #000000;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary-navy:hover {
  background-color: #C41E3A;
  border-color: #C41E3A;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(196, 30, 58, 0.25);
}

.btn-outline-navy {
  background-color: #ffffff;
  color: #002147 !important;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 11px 26px;
  border-radius: 6px;
  border: 2px solid #002147;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-navy:hover {
  background-color: #002147;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-login-link,
.header-auth-btn {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-weight: 700;
  font-size: 0.85rem;
  color: #002147;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 4px;
  position: relative;
  transition: color 0.25s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.btn-login-link:hover,
.header-auth-btn:hover,
.header-auth-btn.active {
  color: #C41E3A !important;
}

.header-auth-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  width: 100%;
  height: 2.5px;
  background-color: #C41E3A;
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.header-auth-btn.active::after,
.header-auth-btn:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.btn-user {
  background: transparent;
  border: none;
  color: var(--color-brand-navy);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.btn-user:hover {
  color: var(--color-brand-blue);
}

/* ========== Mega Menu (Focus Areas / AiLabTech Style) ========== */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: transparent;
  /* Wrapper is transparent */
  border: none;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1000;
  padding-top: 20px;
  /* Offset from nav */
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* The actual white card */
.mega-layout {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  padding: 30px;
  /* Internal padding */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Left Side: Category Grid */
.mega-categories {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 Columns */
  gap: 15px;
  /* Spacing between pills */
}

.mega-cat-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: #fffafa;
  /* Very light background default */
  border: 1px solid transparent;
  /* No border by default */
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  min-height: 70px;
}

/* Hover State - Red Border like reference */
.mega-cat-item:hover {
  border-color: #e74c3c;
  background: #fff;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.1);
}

/* Icons */
.mega-cat-icon {
  width: 45px;
  height: 45px;
  background: #fdebd0;
  /* Peach/Light Orange background like reference */
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: #e67e22;
  /* Orange icon color */
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all 0.2s;
}

/* Special case for Aviation/Airframe to match reference red */
.mega-cat-item:nth-child(1) .mega-cat-icon,
.mega-cat-item:hover .mega-cat-icon {
  background: #fadbd8;
  /* Light Red */
  color: #c0392b;
  /* Dark Red */
}

.mega-cat-info {
  display: flex;
  flex-direction: column;
}

.mega-cat-info h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #2c3e50;
  font-weight: 700;
}

.mega-cat-info span {
  display: none;
  /* Hide small description in this compact pill view if preferred, or keep small */
}

/* Right Side: Dynamic Preview */
.mega-preview-panel {
  width: 500px;
  background: white;
  /* border-radius: 12px; REMOVED border from container */
  /* overflow: hidden; */
  /* border: 1px solid #eee; */
  /* box-shadow: 0 10px 30px rgba(0,0,0,0.05); */
  display: flex;
  flex-direction: column;
}

.mega-preview-img-container {
  height: 280px;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  /* Image rounded */
  margin-bottom: 20px;
}

.mega-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mega-preview-content {
  padding: 0 10px;
}

.mega-preview-title {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 8px;
  font-weight: 700;
}

.mega-preview-desc {
  font-size: 0.9rem;
  color: #7f8c8d;
  line-height: 1.5;
}

/* ========== Login / Register Page Styling ========== */
.auth-page-body {
  background-image: url('../background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  /* Allow footer */
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* NO SCROLL as requested */
  margin: 0;
}

.auth-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 15px;
  background: rgba(15, 17, 21, 0.9);
  /* Dark Premium Theme */
  color: #aaa;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-card {
  background: rgba(255, 255, 255, 0.15);
  /* Translucent */
  backdrop-filter: blur(15px);
  /* Frost effect */
  -webkit-backdrop-filter: blur(15px);
  padding: 40px 50px;
  border-radius: 10px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: black;
}

.auth-card h2 {
  color: black;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.auth-card .form-group {
  margin-bottom: 20px;
}

.auth-card label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333333;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.auth-card .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: black;
  border-radius: 0;
  /* Square elegant look */
}

.auth-card .form-control:focus {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--color-premium-gold);
  color: black;
  box-shadow: none;
}

.auth-card button.btn-primary {
  background: var(--color-premium-gold);
  border: none;
  width: 67%;
  padding: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 10px;
  transition: all 0.3s;
}

.auth-card button.btn-primary:hover {
  background: var(--color-premium-white);
  color: var(--color-premium-dark);
}

.auth-card a {
  color: var(--color-premium-gold);
  text-decoration: none;
  font-size: 0.9rem;
}

.auth-card a:hover {
  text-decoration: underline;
  color: black;
}

/* ========== Layout Utilities ========== */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
}

/* ========== Homepage V2 Styles (AviParts Global) ========== */
.hero-section-v2 {
  padding: 100px 0;
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('/parts_image.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
  position: relative;
  color: white;
}

.hero-grid {
  display: block;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  color: white;
  margin-bottom: 25px;
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
}

.hero-title .highlight {
  color: var(--color-premium-gold);
}

.hero-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-actions-v2 {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
  justify-content: center;
}

.btn-primary-v2 {
  background-color: var(--color-premium-gold);
  color: white !important;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.btn-primary-v2:hover {
  background-color: var(--color-premium-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn-outline-v2 {
  border: 2px solid white;
  color: white !important;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-outline-v2:hover {
  background-color: white;
  color: #0f172a !important;
}

.hero-stats-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-premium-gold);
  font-family: var(--font-heading);
}

.stat-txt {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-main-img {
  width: 100%;
  height: auto;
  display: block;
}

.floating-badge {
  position: absolute;
  bottom: 30px;
  left: -20px;
  background: white;
  padding: 15px 25px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--color-brand-blue);
}

.floating-badge i {
  color: var(--color-brand-blue);
  font-size: 1.5rem;
}

.floating-badge span {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--color-brand-navy);
}

/* Category Grid Polish */
.compact-category-card {
  background: white;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.compact-category-card:hover {
  border-color: var(--color-brand-blue);
  box-shadow: var(--shadow-lg);
}

.compact-card-icon {
  background: var(--color-brand-navy);
}

/* ========== Modal Styles (New) ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white !important;
  width: 400px;
  padding: 30px;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  border-top: 5px solid var(--color-premium-gold);
  text-align: center;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
  color: #999;
}

.close-modal:hover {
  color: var(--color-premium-dark);
}

.modal-header h2 {
  font-size: 1.5rem;
  color: var(--color-premium-dark);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.user-avatar {
  width: 80px;
  height: 80px;
  background: var(--color-premium-dark);
  color: var(--color-premium-gold);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-family: var(--font-heading);
}

.btn-gold-filled {
  background: var(--color-premium-gold);
  color: white;
  border: none;
  padding: 10px 20px;
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-gold-filled:hover {
  background: var(--color-premium-gold-hover);
}

.btn-gold-outline {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-premium-gold);
  color: var(--color-premium-gold-dim);
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.btn-gold-outline:hover {
  background: #fafafa;
  color: var(--color-premium-gold);
}

/* ========== Restored Hero Section with Video ========== */
.hero-section {
  position: relative;
  height: 600px;
  /* Restored original height */
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
  /* Fallback */
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(270deg, rgba(15, 17, 21, 0.95) 0%, rgba(15, 17, 21, 0.4) 60%, rgba(15, 17, 21, 0) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  /* Restored Right Align */
  align-items: center;
  height: 100%;
}

.hero-text-container {
  max-width: 650px;
  text-align: right;
  padding-right: 40px;
  margin-bottom: 13px;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 4rem;
  color: white;
  margin-bottom: 15px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.8rem;
  color: var(--color-premium-gold);
  margin-bottom: 25px;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
}

.hero-desc {
  font-size: 1.2rem;
  color: #eee;
  margin-bottom: 30px;
  line-height: 1.6;
  font-weight: 300;
}

.btn-hero-action {
  display: inline-block;
  padding: 12px 35px;
  background: transparent;
  border: 1px solid var(--color-premium-gold);
  color: var(--color-premium-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-hero-action:hover {
  background: var(--color-premium-gold);
  color: var(--color-premium-dark);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Categories Grid (Compressed & Advanced Hover) ========== */
.categories-section {
  position: relative;
  margin-top: -80px;
  /* Stronger overlap for "compressed" portal look */
  z-index: 10;
  padding-bottom: 40px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  /* Tighter gap */
}

/* Base Card Style */
.cat-card {
  position: relative;
  height: 280px;
  /* Reduced height for compressed view */
  border-radius: 2px;
  /* Sharper corners for technical/aviation feel */
  overflow: hidden;
  display: block;
  text-decoration: none;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  background: #0F1115;
  /* Fallback */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Image Layer - Full View Logic */
.cat-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  /* Ensures full texturing */
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  opacity: 0.9;
}

/* Overlay Layer */
.cat-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(15, 17, 21, 0.95) 0%, rgba(15, 17, 21, 0.3) 40%, rgba(15, 17, 21, 0.1) 100%);
  transition: all 0.5s ease;
}

/* Content Layout */
.cat-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  z-index: 2;
}

.cat-icon {
  font-size: 1.8rem;
  color: var(--color-premium-gold);
  margin-bottom: 10px;
  transform: translateY(0);
  /* Static originally */
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  background: rgba(15, 17, 21, 0.6);
  padding: 10px;
  border-radius: 50%;
  backdrop-filter: blur(4px);
}

.cat-card h3 {
  font-size: 1.3rem;
  font-family: var(--font-heading);
  margin: 0;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
  transform: translateY(0);
  transition: transform 0.5s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

/* Hover Interaction - "Advanced Styling" */
.cat-card:hover .cat-bg {
  transform: scale(1.15);
  /* Slight slow zoom */
  opacity: 1;
}

.cat-card:hover .cat-overlay {
  background: linear-gradient(0deg, rgba(198, 168, 124, 0.85) 0%, rgba(15, 17, 21, 0.2) 60%, rgba(15, 17, 21, 0) 100%);
  /* Gold wash up */
}

.cat-card:hover .cat-icon {
  background: white;
  color: var(--color-premium-dark);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cat-card:hover h3 {
  transform: translateY(-5px);
  color: white;
  border-bottom-color: white;
}

/* Scroll Animation Stagger */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUpCard 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
}

@keyframes fadeInUpCard {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-hero {
    height: 50vh;
  }
}

@media (max-width: 600px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-title-large {
    font-size: 2.2rem;
  }

  .categories-section {
    margin-top: -30px;
  }
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensures video fills container without distortion */
  transform: translate(-50%, -50%);
  z-index: 1;
}

.hero-overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* Darken video for text readability */
  z-index: 2;
}

.hero-content-video {
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
}

.hero-text-centered {
  max-width: 800px;
  margin: 0 auto;
  color: white;
  animation: fadeInUp 1s ease-out;
}

.hero-title-large {
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: white;
  margin-bottom: 10px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle-gold {
  font-family: var(--font-heading);
  /* Playfair Display */
  font-size: 1.8rem;
  color: var(--color-premium-gold);
  font-style: italic;
  margin-bottom: 20px;
}

.hero-desc-light {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-hero-action {
  display: inline-block;
  padding: 12px 35px;
  background: transparent;
  border: 1px solid var(--color-premium-gold);
  color: var(--color-premium-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-hero-action:hover {
  background: var(--color-premium-gold);
  color: var(--color-premium-dark);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Categories Grid (Compressed & Advanced Hover) ========== */
.categories-section {
  position: relative;
  margin-top: -60px;
  /* Overlap the hero slightly for modern look, or just tight spacing */
  z-index: 10;
  padding-bottom: 50px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* 4 Columns for compressed horizontal look */
  gap: 15px;
  /* Reduced gap */
}

.cat-card {
  position: relative;
  height: 350px;
  /* Taller, narrower cards */
  border-radius: 4px;
  /* Minimal rounding */
  overflow: hidden;
  display: block;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.cat-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cat-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
  transition: background 0.3s ease;
}

.cat-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 25px;
  color: white;
  transform: translateY(0);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.cat-icon {
  font-size: 2rem;
  color: var(--color-premium-gold);
  margin-bottom: 15px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
}

.cat-card h3 {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  margin: 0;
  transform: translateY(10px);
  transition: transform 0.4s ease;
  color: white;
}

/* Hover Effects */
.cat-card:hover .cat-bg {
  transform: scale(1.1);
}

.cat-card:hover .cat-overlay {
  background: linear-gradient(to top, rgba(198, 168, 124, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
  /* Gold tint on hover */
}

.cat-card:hover .cat-icon {
  opacity: 1;
  transform: translateY(0);
}

.cat-card:hover h3 {
  transform: translateY(-5px);
}

/* Scroll Animation (Simple Entrance) */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUpCard 0.8s forwards;
}

@keyframes fadeInUpCard {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-title-large {
    font-size: 2.5rem;
  }
}

/* ========== Advanced Toast Notifications ========== */
#toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 200px;
  max-width: 300px;
  background: rgba(15, 17, 21, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 3px solid var(--color-premium-gold);
  transform: translateX(120%);
  transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
}

.toast.show {
  transform: translateX(0);
}

.toast.hide {
  transform: translateX(120%);
  opacity: 0;
}

.toast-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
}

.toast-content {
  flex-grow: 1;
}

.toast-title {
  font-family: var(--font-heading), 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 1px;
  display: block;
  line-height: 1.2;
}

.toast-message {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  display: block;
  line-height: 1.3;
}

.toast-close {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  font-size: 0.85rem;
}

.toast-close:hover {
  opacity: 1;
}

/* Toast Variants */
.toast-success {
  border-left-color: #10b981;
}

.toast-success .toast-icon {
  color: #10b981;
}

.toast-error {
  border-left-color: #ef4444;
}

.toast-error .toast-icon {
  color: #ef4444;
}

.toast-info {
  border-left-color: #3b82f6;
}

.toast-info .toast-icon {
  color: #3b82f6;
}

.toast-warning {
  border-left-color: #f59e0b;
}

.toast-warning .toast-icon {
  color: #f59e0b;
}

/* Progress Bar - Hidden */
.toast-progress {
  display: none !important;
}

/* =============================================
   Category Cards Styling (CategoryGrid)
   ============================================= */
.products-page-wrapper {
  --theme-primary: #C6A87C;
  --theme-primary-hover: #D4B68C;
  --theme-primary-dark: #8C7350;
  --bg-main: #ffffff;
  --bg-card: #ffffff;
  --bg-image: #f9f9f9;
  --text-main: #0F1115;
  --text-muted: #666666;
  --border-color: #e5e7eb;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Gold Theme (Default) */
.products-page-wrapper[data-theme="gold"] {
  --theme-primary: #C6A87C;
  --theme-primary-hover: #D4B68C;
  --theme-primary-dark: #8C7350;
}

/* Navy Theme */
.products-page-wrapper[data-theme="navy"] {
  --theme-primary: #1e3a8a;
  --theme-primary-hover: #3b82f6;
  --theme-primary-dark: #1e40af;
}

/* Charcoal Theme */
.products-page-wrapper[data-theme="charcoal"] {
  --theme-primary: #374151;
  --theme-primary-hover: #6b7280;
  --theme-primary-dark: #1f2937;
}

/* Burgundy Theme */
.products-page-wrapper[data-theme="burgundy"] {
  --theme-primary: #881337;
  --theme-primary-hover: #be123c;
  --theme-primary-dark: #9f1239;
}

/* Dark Mode */
.products-page-wrapper[data-mode="dark"] {
  --bg-main: #0f172a;
  --bg-card: #1e293b;
  --bg-image: #334155;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.products-page-wrapper {
  background: var(--bg-main);
  min-height: 100vh;
  padding-bottom: 40px;
}

/* Category Cards */
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.cat-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
  border-color: var(--theme-primary);
}

.cat-image {
  height: 160px;
  background: var(--bg-image);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cat-image img {
  max-height: 100%;
  max-width: 100%;
  transition: transform 0.3s;
  object-fit: contain;
  display: block;
}

.cat-card:hover .cat-image img {
  transform: scale(1.08);
}

.no-image {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.4;
  font-weight: 600;
  opacity: 0.5;
}

.no-image i {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.cat-content {
  padding: 15px;
  background: var(--bg-card);
  flex-grow: 1;
  border-top: 1px solid var(--border-color);
}

.cat-content h3 {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 5px;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.cat-card:hover h3 {
  color: var(--theme-primary);
}

.cat-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.cat-card:hover .cat-link {
  color: var(--theme-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 15px !important;
  }
}

/* =============================================
   Compact Product Card Styling (Catalog)
   ============================================= */
.catalog-page-wrapper {
  padding: 10px 20px;
  background-color: #F1F5F9;
  min-height: 100vh;
  width: 100%;
}

.catalog-container.compact-layout {
  max-width: 100%;
  margin: 0;
}

/* Professional Header */
.compact-header {
  background: white;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border: 1px solid var(--user-border);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.compact-header h1 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--user-navy);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-filter-icon {
  background: #EEF2FF;
  border: 1px solid #E0E7FF;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #4338CA;
  font-size: 0.75rem;
  text-transform: uppercase;
  transition: all 0.2s;
}

.btn-filter-icon:hover {
  background: #E0E7FF;
}

.parts-count-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748B;
}

/* High-Density Product Grid */
.products-grid.compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.product-card-compact {
  background: white;
  border-radius: 6px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--user-border);
  transition: all 0.2s ease;
  cursor: pointer;
}

.product-card-compact:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1);
  border-color: var(--user-blue);
}

.card-img-compact {
  height: 70px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  background: #F8FAFC;
  border-radius: 4px;
  overflow: hidden;
}

.card-img-compact img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.3s;
}

.product-card-compact:hover .card-img-compact img {
  transform: scale(1.05);
}

.btn-quick-add {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  color: var(--color-brand-navy);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 5;
  transition: all 0.2s;
}

.btn-quick-add:hover {
  background: var(--color-brand-blue);
  color: white;
  border-color: var(--color-brand-blue);
  transform: rotate(90deg);
}

.card-info-compact h4 {
  margin: 0 0 2px 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-brand-navy);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

.pn-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.pn {
  font-size: 0.65rem;
  color: #94A3B8;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.moq-badge {
  font-size: 0.6rem;
  background: #FEF9C3;
  color: #854D0E;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  width: fit-content;
}

.meta-row {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid #F1F5F9;
}

.price {
  font-weight: 800;
  color: var(--color-brand-blue);
  font-size: 0.85rem;
}

.stock {
  font-size: 0.65rem;
  font-weight: 700;
}

.stock.in {
  color: #16A34A;
}

.stock.out {
  color: #DC2626;
}

.login-link {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-brand-blue);
  text-decoration: none;
  text-transform: uppercase;
}

/* Modern Off-Canvas Filter */
.filter-offcanvas {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100vh;
  background: white;
  z-index: 3000;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.filter-offcanvas.open {
  right: 0;
}

.offcanvas-header {
  padding: 20px 25px;
  background: var(--color-brand-navy);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offcanvas-header h3 {
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
}

.btn-close-menu {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

.offcanvas-body {
  padding: 25px;
  overflow-y: auto;
  flex: 1;
}

.filter-section {
  margin-bottom: 30px;
}

.filter-section h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #94A3B8;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.compact-input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.85rem;
  transition: border-color 0.2s;
}

.compact-input:focus {
  border-color: var(--color-brand-blue);
  outline: none;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recommended-btn {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  cursor: pointer;
  color: #475569;
  font-weight: 700;
}

.recommended-btn.active {
  background: var(--color-premium-gold);
  color: black;
  border-color: var(--color-premium-gold);
}

.offcanvas-footer {
  padding: 20px 25px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  gap: 10px;
}

.btn-apply-compact {
  flex: 1;
  background: var(--color-brand-navy);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.75rem;
  cursor: pointer;
  text-transform: uppercase;
}

.btn-reset-compact {
  background: #F1F5F9;
  color: #64748B;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.75rem;
  cursor: pointer;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .catalog-page-wrapper {
    padding: 15px;
  }

  .products-grid.compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
  }

  .product-card-compact {
    padding: 8px;
  }

  .card-img-compact {
    height: 90px;
  }
}

@media (max-width: 640px) {
  .compact-header {
    padding: 10px 15px;
  }

  .header-left h1 {
    display: none;
  }

  .filter-offcanvas {
    width: 100%;
    right: -100%;
  }

  .products-grid.compact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Always show spin buttons for number inputs */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 1 !important;
  display: flex !important;
}

/* ========== Global Consistent Header (Non-Home Pages) ========== */
.global-page-header {
  height: 76px !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
}

.global-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

.global-header-left {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.global-header-brand {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  flex-shrink: 0;
}

.global-header-brand img {
  height: 70px;
  width: auto;
  object-fit: contain;
  display: block;
}

.global-header-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.global-nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 16px;
  height: 100%;
}

.global-nav-links>li {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

.global-nav-links>li>a {
  font-family: var(--font-body), 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: color 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  padding: 0;
  box-sizing: border-box;
}

.global-nav-links>li>a:hover {
  color: #C41E3A;
}

.global-nav-links>li>a.active {
  color: #C41E3A;
}

.global-nav-links>li>a::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  width: 100%;
  height: 2.5px;
  background-color: #C41E3A;
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.global-nav-links>li>a.nav-dropdown-toggle::after {
  right: 18px;
  width: calc(100% - 18px);
}

.global-nav-links>li>a.active::after,
.global-nav-links>li>a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.global-nav-links .nav-sub-menu a::after,
.global-nav-links .nav-sub-menu li a::after,
.global-nav-links .nav-sub-menu li a:hover::after,
.global-nav-links .nav-sub-menu li a.active::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
}

.global-header-right {
  display: flex;
  align-items: center;
  gap: 0px;
  height: 100%;
  flex-shrink: 0;
}

.global-hdr-icon {
  color: #002147;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  text-decoration: none;
  border-radius: 6px;
}

.global-hdr-icon:hover {
  background-color: #f1f5f9;
  transform: none;
}

@media (max-width: 1100px) {
  .global-nav-links {
    gap: 16px;
  }

  .global-nav-links a {
    font-size: 0.78rem;
    letter-spacing: 0.5px;
  }

  .global-header-left {
    gap: 20px;
  }
}

@media (max-width: 850px) {
  .global-header-nav {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .global-page-header {
    padding: 0 16px !important;
  }
}

/* ==============================================
   ABOUT US NAV DROPDOWN MENU
   ============================================== */
.nav-dropdown-item {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  user-select: none;
}

.nav-dropdown-item:hover .nav-dropdown-toggle {
  color: #C41E3A !important;
}

.dropdown-caret {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.nav-dropdown-item:hover .dropdown-caret {
  transform: rotate(180deg);
}

.nav-sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50% !important;
  transform: translateX(-50%) !important;
  min-width: 210px;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0, 33, 71, 0.12) !important;
  padding: 8px 0 !important;
  margin-top: 4px !important;
  list-style: none !important;
  z-index: 99999 !important;
}

/* Hover Bridge: ensures continuous cursor hover connection from button to dropdown */
.nav-sub-menu::before {
  content: '' !important;
  position: absolute !important;
  top: -24px !important;
  left: 0 !important;
  right: 0 !important;
  height: 24px !important;
  background: transparent !important;
  display: block !important;
  z-index: 99999 !important;
}

.nav-dropdown-item:hover>.nav-sub-menu {
  display: block !important;
}

.nav-sub-menu li {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  list-style: none !important;
}

.nav-sub-menu li a {
  display: block !important;
  padding: 10px 20px !important;
  color: #1e293b !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  border: none !important;
  background: transparent !important;
  white-space: nowrap !important;
}

.nav-sub-menu li a:hover {
  background-color: #fff5f5 !important;
  color: #C41E3A !important;
  padding-left: 24px !important;
}

/* ==============================================
   Settings Dropdown & Language Selector
   ============================================== */
.btn-tool, .btn-user-dropdown, .global-hdr-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  cursor: pointer !important;
  border-radius: 6px !important;
  transition: background-color 0.2s ease !important;
  transform: none !important;
}

.btn-tool:hover, .btn-user-dropdown:hover, .global-hdr-icon:hover {
  background-color: #f1f5f9 !important;
  transform: none !important;
}

.btn-tool img, .btn-user-dropdown img, .global-hdr-icon img {
  height: 22px !important;
  width: 22px !important;
  max-height: 22px !important;
  max-width: 22px !important;
  object-fit: contain !important;
  display: block !important;
}

.settings-dropdown-container {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
}

.settings-dropdown-container:hover .settings-menu,
.settings-dropdown-container:focus-within .settings-menu,
.settings-dropdown-container.open .settings-menu {
  display: block !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.settings-menu {
  position: absolute !important;
  top: calc(100% - 4px) !important;
  right: 0 !important;
  background: transparent !important;
  min-width: 170px !important;
  z-index: 10000 !important;
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  padding-top: 8px;
  margin-top: 0;
}

.menu-content {
  background: #ffffff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  border-radius: 8px !important;
  padding: 8px 0 !important;
  border: 1px solid #e2e8f0 !important;
  position: relative !important;
}

/* Triangle pointer */
.menu-content::after {
  content: '' !important;
  position: absolute !important;
  top: -6px !important;
  right: 14px !important;
  width: 10px !important;
  height: 10px !important;
  background: white !important;
  transform: rotate(45deg) !important;
  border-top: 1px solid #e2e8f0 !important;
  border-left: 1px solid #e2e8f0 !important;
}

.menu-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 16px !important;
  color: #1e293b !important;
  text-decoration: none !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
  background: transparent !important;
  border: none !important;
  width: 100% !important;
  text-align: left !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.menu-item i,
.menu-item span,
.menu-item svg {
  color: inherit !important;
  transition: color 0.2s ease !important;
}

.menu-item:hover,
.menu-item:focus,
.menu-item.active {
  background: #fff5f5 !important;
  color: #c8102e !important;
}

.menu-item:hover i,
.menu-item:hover span,
.menu-item:hover svg,
.menu-item.active i,
.menu-item.active span,
.menu-item.active svg {
  color: #c8102e !important;
}

.menu-item.logout-btn-item:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

.menu-item.logout-btn-item:hover i,
.menu-item.logout-btn-item:hover span {
  color: #dc2626 !important;
}

.menu-item img {
  width: 20px !important;
  height: auto !important;
  margin-right: 8px !important;
  border-radius: 2px !important;
}
/* ============================================================
   SHARED KPI BAR
   ============================================================ */
.kpi-bar {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 12px;
    margin-bottom: 24px;
}
.kpi-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.kpi-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.kpi-content {
    display: flex;
    flex-direction: column;
}
.kpi-value-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.kpi-value {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}
.kpi-percent {
    font-size: 10px;
    font-weight: 600;
    color: #475569;
}
.kpi-label {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}
/* Colors */
.kpi-blue .kpi-icon-box { background: #eff6ff; color: #3b82f6; }
.kpi-orange .kpi-icon-box { background: #fff7ed; color: #f97316; }
.kpi-green .kpi-icon-box { background: #f0fdf4; color: #22c55e; }
.kpi-purple .kpi-icon-box { background: #faf5ff; color: #a855f7; }
.kpi-teal .kpi-icon-box { background: #f0fdfa; color: #14b8a6; }
.kpi-red { background: #fef2f2; border-color: #fee2e2; }
.kpi-red .kpi-icon-box { background: #fee2e2; color: #ef4444; }
.kpi-gray .kpi-icon-box { background: #f1f5f9; color: #64748b; }
