@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  /* Colors - Classic Industrial */
  --color-primary: #FF6B00; /* Safety Orange */
  --color-primary-dark: #CC5500;
  --color-secondary: #0F172A; /* Navy Blue */
  --color-secondary-light: #1E293B; /* Lighter Navy */
  --color-accent: #1D4ED8; /* Blue Accent */
  --color-bg-light: #FFFFFF;
  --color-bg-soft: #F1F5F9; /* Light Steel */
  --color-bg-dark: #0F172A;
  --color-text-dark: #0F172A;
  --color-text-muted: #64748B;
  --color-text-light: #F8FAFC;
  --color-silver: #94A3B8;
  --color-border: #CBD5E1;
  
  /* Typography */
  --font-heading: 'Manrope', 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* UI Elements */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 20px rgba(255, 107, 0, 0.25); /* Orange glow */
}

[data-theme="dark"] {
  --color-bg-light: #0F172A; /* Navy Blue */
  --color-bg-soft: #1E293B; /* Lighter Navy */
  --color-text-dark: #F8FAFC;
  --color-text-muted: #94A3B8;
  --color-border: #334155;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  font-family: var(--font-body);
  background-color: var(--color-bg-soft);
  color: var(--color-text-dark);
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* Glassmorphism utility */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .glass {
  background: rgba(15, 23, 42, 0.6); /* Navy Blue with opacity */
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Base utility classes to simplify some layouts while avoiding tailwind */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}


/* =========================================
   HOMEPAGE INDUSTRIES SECTION FIX
   ========================================= */

.industriesSection {
  padding: 6rem 0;
  background-color: var(--color-bg-alt, #f8fafc);
  border-top: 1px solid var(--color-border);
}

[data-theme="dark"] .industriesSection {
  background-color: var(--color-bg-dark, #0f172a);
}

.industriesHeader {
  text-align: center;
  margin-bottom: 4rem;
}

.industriesTitle {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  margin-bottom: 1rem;
}

[data-theme="dark"] .industriesTitle {
  color: var(--color-text-light);
}

.industriesSubtitle {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.industriesGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.industryCard {
  background: white;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

[data-theme="dark"] .industryCard {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.industryCard:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .industryCard:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.industryIconWrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.industryCard:hover .industryIconWrapper {
  background: var(--color-primary);
  color: white;
}

.industryCardTitle {
  font-size: 1.25rem;
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  margin-bottom: 0.75rem;
}

[data-theme="dark"] .industryCardTitle {
  color: white;
}

.industryCardDesc {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
}

[data-theme="dark"] .industryCardDesc {
  color: #94a3b8;
}

/* Subtle gradient overlay effect on hover */
.industryOverlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0) 0%, rgba(249, 115, 22, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.industryCard:hover .industryOverlay {
  opacity: 1;
}


/* =========================================
   GLOBAL RESPONSIVENESS (MOBILE)
   ========================================= */

/* Hide mobile menu button on large screens by default */
.mobileMenuBtn {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-dark);
  cursor: pointer;
}

[data-theme="dark"] .mobileMenuBtn {
  color: var(--color-text-light);
}

/* Mobile Menu Drawer */
.mobileMenu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--color-bg-light);
  z-index: 1000;
  transition: right 0.3s ease;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  overflow-y: auto;
}

[data-theme="dark"] .mobileMenu {
  background-color: var(--color-bg-dark);
  box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}

.mobileMenu.active {
  right: 0;
}

.mobileMenuContent {
  padding: 5rem 2rem 2rem;
}

.mobileNavLinks {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.mobileNavLinks li {
  margin-bottom: 1.5rem;
}

.mobileNavLinks a {
  text-decoration: none;
  color: var(--color-text-dark);
  font-size: 1.25rem;
  font-weight: 500;
}

[data-theme="dark"] .mobileNavLinks a {
  color: var(--color-text-light);
}

.mobileActions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* MEDIA QUERIES FOR GLOBAL ELEMENTS */
@media (max-width: 992px) {
  .desktopNav {
    display: none; /* Hide desktop links */
  }
  
  .mobileMenuBtn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Keep header elements on single line */
  .header .container {
    flex-wrap: nowrap;
  }
}

@media (max-width: 768px) {
  /* Footer Grid */
  .footerGrid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .socialLinks {
    justify-content: center;
  }
  
  /* Tables globally */
  .table-responsive,
  .recentOrders,
  .cartTable,
  .wishlistTable {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}



/* =========================================
   MOBILE RESPONSIVENESS - PRODUCTS & CATALOG
   ========================================= */

@media (max-width: 992px) {
  /* Products Catalog Page */
  .shopLayout {
    display: flex;
    flex-direction: column;
  }

  .filters {
    width: 100%;
    margin-bottom: 2rem;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding-right: 0;
    padding-bottom: 2rem;
  }

  /* Product Details Page */
  .productDetailContainer {
    display: flex;
    flex-direction: column;
  }

  .productImageGallery {
    position: static; /* Remove sticky on mobile */
    margin-bottom: 2rem;
  }

  /* Adjust grids to force 1 column on very small phones if minmax was too large */
  .productGrid, .industriesGrid, .categoryGrid {
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
  }
}

@media (max-width: 768px) {
  /* Hero Section Typography */
  .heroTitle {
    font-size: 2.5rem !important; /* Override large sizes */
  }
  
  .heroSubtitle {
    font-size: 1.1rem !important;
  }
}



/* =========================================
   MOBILE RESPONSIVENESS - PROFILE & DASHBOARD
   ========================================= */

@media (max-width: 768px) {
  /* Profile Header */
  .profileHeader {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* Profile Grid */
  .profileGrid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Sidebar Menu */
  .sidebarMenu {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
  }
  
  .sidebarMenu li {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .sidebarMenu a {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: var(--color-bg-soft);
    white-space: nowrap;
  }
  
  .sidebarMenu a.active {
    background: var(--color-primary);
    color: white;
  }
}
