/* ==========================================================================
   KRISHNA ENTERPRISES — NAVY BLUE CORPORATE INDUSTRIAL THEME (REFINED)
   Style: Trust & Authority, Clean Local Assets, WCAG AAA Contrast
   ========================================================================== */

:root {
  /* Navy Blue Color Palette */
  --primary: #1e3a8a;
  --primary-dark: #0b192c;
  --primary-light: #2563eb;
  --accent: #3b82f6;
  --accent-gold: #d97706;
  --accent-glow: rgba(59, 130, 246, 0.25);
  
  --dark-bg: #070f1e;
  --dark-card: #0e1e38;
  --dark-border: rgba(255, 255, 255, 0.15);
  
  --slate-dark: #0f172a;
  --slate-card: #1e293b;
  --slate-text: #334155;
  
  --light-bg: #f8fafc;
  --light-card: #ffffff;
  --light-border: #cbd5e1;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #ffffff;
  
  /* Typography - Lexend / Plus Jakarta Sans */
  --font-heading: 'Lexend', 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 5px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(30, 58, 138, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 35px -10px rgba(11, 25, 44, 0.3);
  --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.35);
  
  --glass-bg: rgba(11, 25, 44, 0.95);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-blur: blur(16px);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--light-bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

.alt-bg {
  background-color: #ffffff;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 50%, #d97706 100%);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Top Announcement Bar */
.top-bar {
  background-color: var(--dark-bg);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--dark-border);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-item, .top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.85rem;
}

.top-bar-item i, .top-link i {
  font-size: 1rem;
  color: #60a5fa;
  transition: transform 0.2s ease, color 0.2s ease;
}

.top-link:hover {
  color: #60a5fa;
}

.top-link:hover i {
  transform: scale(1.15);
  color: #93c5fd;
}

.top-bar-divider {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
  font-size: 0.85rem;
  user-select: none;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

/* Krishna transparent logo — seamlessly blended */
.logo-img {
  height: 48px;
  width: auto;
  max-width: 54px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(96, 165, 250, 0.35));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-logo:hover .logo-img {
  transform: scale(1.08);
  filter: brightness(0) invert(1) drop-shadow(0 4px 10px rgba(96, 165, 250, 0.6));
}

.logo-img-footer {
  height: 40px;
  max-width: 46px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  color: #ffffff;
  line-height: 1;
}

.brand-sub {
  font-size: 0.725rem;
  letter-spacing: 2px;
  color: #60a5fa;
  font-weight: 700;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #60a5fa;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: #60a5fa;
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rfq-toggle-btn {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid #60a5fa;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  position: relative;
}

.rfq-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.rfq-badge {
  background: var(--accent-gold);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
  color: #fff;
  font-size: 1.75rem;
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-lg {
  padding: 0.9rem 2.2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-pill);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
}

.btn-navy {
  background: #0b192c;
  color: #ffffff;
  border: 1px solid #60a5fa;
}

.btn-navy:hover {
  background: #1e3a8a;
  color: #fff;
}

.btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  border-color: #60a5fa;
  color: #60a5fa;
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline-dark {
  border: 1.5px solid var(--slate-dark);
  color: var(--slate-dark);
}

.btn-outline-dark:hover {
  background: var(--slate-dark);
  color: #fff;
}

.btn-whatsapp {
  background: #16a34a;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #15803d;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  color: var(--text-muted);
  font-weight: 700;
}

.btn-ghost:hover {
  color: var(--primary);
  background: rgba(30, 58, 138, 0.1);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: var(--dark-bg);
  color: #ffffff;
  padding: 6rem 0 7rem;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.28) 0%, transparent 55%),
              radial-gradient(circle at 10% 80%, rgba(11, 25, 44, 0.85) 0%, transparent 60%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  padding: 0.45rem 1.35rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
  line-height: 1.18;
}

.hero-title-line {
  display: block;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

/* Official GeM Banner in Hero */
.hero-gem-official {
  margin-bottom: 3.5rem;
  display: flex;
  justify-content: center;
}

.gem-official-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(96, 165, 250, 0.25);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gem-official-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(96, 165, 250, 0.4);
}

.gem-official-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.gem-official-info {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.gem-official-title {
  color: #0b192c;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.25;
  text-align: center;
}

.gem-official-sub {
  color: #475569;
  font-size: 0.775rem;
  font-weight: 600;
  margin-top: 3px;
  text-align: center;
}

/* GeM Section Official Image */
.gem-section-official-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  background: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Stats Grid */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: rgba(14, 30, 56, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.stat-card {
  text-align: center;
}

.stat-number {
  font-size: 2.35rem;
  font-weight: 800;
  color: #60a5fa;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

/* GeM Section background */
.gem-section {
  background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
}

/* Catalog section background */
.catalog-section {
  background: var(--light-bg);
}

/* Manufacturing section (alt-bg) */
.manufacturing-section {
  background: #ffffff;
}

/* Contact section */
.contact-section {
  background: var(--light-bg);
}

/* GeM Section & Card Redesign */
.gem-card {
  background: linear-gradient(135deg, #070f1e 0%, #0b192c 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
  color: #ffffff;
}

/* Tag/badge pill component */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.tag-gold {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.gem-content-left h2 {
  font-size: 2.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.75rem 0;
  letter-spacing: -0.5px;
}

.gem-lead-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.6;
}

.brand-badges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.brand-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: rgba(59, 130, 246, 0.25);
  color: #60a5fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.brand-category {
  font-size: 0.75rem;
  color: #fbbf24;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.brand-box h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin: 0.2rem 0;
}

.brand-box p {
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

/* Elegant GeM Tender Desk Box */
.gem-tender-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #0e1e38 100%);
  border: 1.5px solid rgba(96, 165, 250, 0.4);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}

.tender-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.tender-icon {
  font-size: 2.2rem;
  color: #fbbf24;
}

.tender-card-header h3 {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
}

.tender-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.925rem;
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.btn-tender-cta {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.btn-tender-cta:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.55);
}

/* Section Header */
.section-header {
  margin-bottom: 3rem;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary-light);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  font-weight: 500;
}

/* Catalog Section */
.search-filter-wrapper {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  border: 1px solid var(--light-border);
}

.search-box {
  position: relative;
  margin-bottom: 1.25rem;
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  padding: 1rem 3rem 1rem 3.25rem;
  border: 1.5px solid var(--light-border);
  border-radius: var(--radius-pill);
  background: var(--light-bg);
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--primary-light);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.clear-btn {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.25rem;
}

/* Category Pills */
.category-pills-container {
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
}

.category-pills-scroll {
  display: flex;
  gap: 0.6rem;
  min-width: max-content;
}

.cat-pill {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--light-bg);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  border: 1px solid var(--light-border);
}

.cat-pill:hover {
  background: rgba(30, 58, 138, 0.08);
  color: var(--primary);
  border-color: var(--primary-light);
}

.cat-pill.active {
  background: var(--primary-light);
  color: #ffffff;
  border-color: var(--primary-light);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

/* Catalog Info Bar */
.catalog-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
}

.catalog-count-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.count-badge {
  background: rgba(30, 58, 138, 0.12);
  color: var(--primary);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
  margin-left: 0.4rem;
}

/* Product Grid & Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--light-border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.4);
}

/* Image container — strictly bounded */
.product-image-box {
  position: relative;
  height: 230px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: hidden;
  border-bottom: 1px solid var(--light-border);
}

.product-image-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
}

.product-card:hover .product-image-box img {
  transform: scale(1.05);
}

/* Price badge — bottom left */
.badge-price {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: var(--primary-dark);
  color: #ffffff;
  font-size: 0.825rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  letter-spacing: 0.25px;
}

/* Popular badge — top left */
.badge-pop {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--accent-gold);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* GeM brand badge — top right */
.badge-gem {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  z-index: 10;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-cat-tag {
  font-size: 0.75rem;
  color: var(--primary-light);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a; /* HIGH CONTRAST DARK TEXT */
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.product-code {
  font-size: 0.8rem;
  color: #334155; /* HIGH CONTRAST DARK SLATE */
  font-weight: 700;
  font-family: monospace;
  margin-bottom: 0.75rem;
}

.product-specs-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.mini-spec {
  background: #f1f5f9;
  color: #1e293b; /* HIGH READABILITY DARK SLATE */
  font-size: 0.725rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid #e2e8f0;
}

.product-card-actions {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
}

.btn-view-quick {
  flex: 1;
  border: 1px solid var(--light-border);
  background: #ffffff;
  color: #0f172a;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-view-quick:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.btn-add-rfq {
  flex: 1.1;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-add-rfq:hover {
  background: var(--primary-light);
  color: #ffffff;
  border-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.empty-icon {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--light-bg);
  border: 1.5px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.3);
}

.feature-icon {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.feature-card p {
  color: #334155;
  font-size: 0.925rem;
  font-weight: 500;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch; /* Stretch both cards to identical equal height */
}

.contact-info-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--light-border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin: 2rem 0;
  flex-grow: 1;
}

.contact-detail-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-icon {
  width: 46px;
  height: 46px;
  background: rgba(30, 58, 138, 0.12);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.contact-detail-item h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.contact-detail-item p {
  color: #334155;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-link {
  color: var(--primary-light);
  font-weight: 700;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-actions-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto; /* Push buttons to bottom of card for perfect baseline alignment */
}

.contact-form-card {
  background: var(--dark-bg);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--dark-border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-form-card h3 {
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.form-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.925rem;
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--dark-border);
  background: var(--dark-card);
  color: #fff;
  outline: none;
  font-weight: 500;
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 15, 30, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close-btn {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  width: 36px;
  height: 36px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-main);
  z-index: 30;
  border: 1px solid var(--light-border);
  transition: var(--transition);
  cursor: pointer;
}

.modal-close-btn:hover {
  background: var(--slate-dark);
  color: #fff;
  border-color: var(--slate-dark);
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 2rem;
  padding: 2.25rem;
  align-items: stretch;
}

.modal-left-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-img-box {
  background: #f8fafc;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 310px;
  flex-shrink: 0;
}

.modal-img-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.modal-left-footer {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  text-align: center;
  color: #1e3a8a;
  font-size: 0.825rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-grow: 1;
}

.modal-details-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  padding-right: 2.5rem; /* Guarantees zero collision with top-right close button */
}

.modal-tags-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.modal-code-badge {
  font-family: monospace;
  font-size: 0.8rem;
  background: #f1f5f9;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: #334155;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.modal-price-tag {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.modal-price-sub {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

.modal-desc-text {
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.modal-spec-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  font-size: 0.775rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.modal-spec-chip i {
  color: #2563eb;
  font-size: 0.875rem;
}

.modal-action-row {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

/* RFQ Drawer */
.rfq-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2100;
  display: flex;
  justify-content: flex-end;
}

.rfq-drawer-overlay.hidden {
  display: none;
}

.rfq-drawer {
  width: 100%;
  max-width: 450px;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.rfq-drawer-header {
  padding: 1.5rem;
  background: var(--dark-bg);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rfq-drawer-header h3 {
  color: #fff;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drawer-close-btn {
  color: #fff;
  font-size: 1.5rem;
}

.rfq-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* RFQ Empty State */
.rfq-empty-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  gap: 0.5rem;
}

.rfq-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--light-bg);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--light-border);
}

.rfq-item-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
}

.rfq-item-info {
  flex: 1;
}

.rfq-item-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.rfq-item-code {
  font-size: 0.78rem;
  color: #334155;
  font-weight: 600;
}

.rfq-qty-btn {
  width: 26px;
  height: 26px;
  background: #fff;
  border: 1px solid var(--light-border);
  border-radius: 4px;
  font-weight: 800;
}

.rfq-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--light-border);
  background: #fafafa;
}

.rfq-summary {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
}

.rfq-form-inputs input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--dark-bg);
  color: rgba(255, 255, 255, 0.9);
  padding-top: 5rem;
  border-top: 1px solid var(--dark-border);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 450px;
}

.footer-links h4, .footer-contact h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a:hover {
  color: #60a5fa;
}

.footer-contact p {
  display: flex;
  gap: 0.6rem;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.back-to-top {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition);
}

.back-to-top:hover {
  background: #60a5fa;
  color: #fff;
  transform: translateY(-4px);
}

/* Modal action row */
.modal-action-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Modal description text */
.modal-desc-text {
  font-size: 0.95rem;
  color: #334155;
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* RFQ drawer qty row */
.rfq-item-qty-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.rfq-qty-display {
  min-width: 28px;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #0f172a;
}

/* Utilities */
.hidden {
  display: none !important;
}

.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--text-muted); }

.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

/* Pagination Styling */
.pagination-wrapper {
  background: #ffffff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagination-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pagination-count-text {
  font-size: 0.9rem;
  color: #475569;
  font-weight: 600;
}

.load-more-btn {
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.2);
}

.pagination-pages-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.page-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  margin-right: 0.4rem;
}

.page-pill-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.page-pill-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.page-pill-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.75rem; }
  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gem-card { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  
  .site-header {
    height: 70px;
  }
  
  .nav-container {
    height: 70px;
    padding: 0 1rem;
  }
  
  .brand-logo {
    gap: 0.5rem;
  }
  
  .logo-img {
    height: 40px;
    max-width: 42px;
  }
  
  .brand-title {
    font-size: 1.1rem;
  }
  
  .brand-sub {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
  }
  
  .rfq-toggle-btn {
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .rfq-toggle-btn span:not(.rfq-badge) {
    display: none; /* Icon + badge only on mobile for clean header layout */
  }
  
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: #0b192c;
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    border-bottom: 1px solid var(--dark-border);
    z-index: 1000;
    overflow-y: auto;
  }
  
  .main-nav.open {
    transform: translateY(0);
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-section {
    padding: 3.5rem 0 4.5rem;
  }
  
  .hero-badge {
    font-size: 0.75rem;
    padding: 0.35rem 1rem;
    margin-bottom: 1.25rem;
  }
  
  .hero-title {
    font-size: 2.1rem;
    line-height: 1.2;
  }
  
  .hero-description {
    font-size: 0.975rem;
    padding: 0;
    margin-bottom: 2rem;
  }
  
  .hero-cta-group {
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    margin-bottom: 2.5rem;
  }
  
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-gem-official {
    width: 100%;
    margin-bottom: 2.5rem;
  }
  
  .gem-official-badge {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    gap: 0.75rem;
    border-radius: var(--radius-lg);
    width: 100%;
  }
  
  .gem-official-img {
    height: 38px;
  }
  
  .gem-official-title {
    font-size: 0.875rem;
    text-align: center;
  }
  
  .gem-official-sub {
    font-size: 0.725rem;
    text-align: center;
  }
  
  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    padding: 1.25rem;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  /* GeM Section Mobile Responsive Fix */
  .gem-card {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem;
    gap: 1.5rem;
    width: 100%;
    overflow: hidden;
  }
  
  .gem-content-left h2 {
    font-size: 1.55rem;
    line-height: 1.25;
  }
  
  .gem-lead-desc {
    font-size: 0.9rem;
  }
  
  .brand-badges-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
    width: 100%;
  }
  
  .brand-box {
    padding: 1rem;
    gap: 0.75rem;
    width: 100%;
  }
  
  .gem-tender-card {
    padding: 1.25rem;
    width: 100%;
  }
  
  .tender-card-header h3 {
    font-size: 1.15rem;
  }
  
  .tender-btn {
    width: 100%;
    justify-content: center;
  }

  /* Touch Category Scroll Bar */
  .catalog-filter-bar {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .catalog-filter-bar::-webkit-scrollbar {
    display: none;
  }
  
  .filter-btn {
    flex-shrink: 0;
    padding: 0.45rem 0.95rem;
    font-size: 0.8rem;
  }
  
  .catalog-info-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  /* Mobile Modal */
  .modal-card {
    width: calc(100% - 1.5rem);
    max-height: 92vh;
    margin: 1rem auto;
  }
  
  .modal-body-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
  }
  
  .modal-img-box {
    height: 220px;
  }
  
  .modal-title {
    font-size: 1.25rem;
  }
  
  .modal-specs-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-action-row {
    flex-direction: column;
    gap: 0.6rem;
  }
  
  .modal-action-row .btn {
    width: 100%;
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .contact-info-card, .contact-form-card {
    padding: 1.5rem;
  }
  
  .contact-actions-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .contact-actions-row .btn {
    width: 100%;
    justify-content: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .rfq-drawer {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  .product-card {
    border-radius: var(--radius-sm);
  }

  .product-image-box {
    height: 135px !important;
    padding: 0.5rem !important;
  }

  .product-info {
    padding: 0.6rem !important;
  }

  .product-cat-tag {
    font-size: 0.65rem !important;
  }

  .product-title {
    font-size: 0.8rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.2rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2rem;
  }

  .product-code {
    font-size: 0.68rem !important;
    margin-bottom: 0.35rem !important;
  }

  .product-specs-preview {
    display: none !important; /* Keep compact on tiny mobile cards */
  }

  .product-card-actions {
    flex-direction: column !important;
    gap: 0.3rem !important;
  }

  .btn-view-quick, .btn-add-rfq {
    padding: 0.35rem 0.3rem !important;
    font-size: 0.725rem !important;
    width: 100%;
    justify-content: center;
  }

  .badge-price {
    font-size: 0.7rem !important;
    padding: 0.15rem 0.45rem !important;
    bottom: 0.4rem !important;
    left: 0.4rem !important;
  }

  .badge-gem, .badge-pop {
    font-size: 0.55rem !important;
    padding: 0.12rem 0.35rem !important;
    top: 0.4rem !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .brand-title {
    font-size: 1rem;
  }
  
  .brand-sub {
    font-size: 0.6rem;
  }
  
  .filter-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.775rem;
  }
}
