/*
Theme Name: BP Brothers B2B Theme
Theme URI: https://goldenrod-barracuda-676424.hostingersite.com
Author: Antigravity AI
Author URI: https://goldenrod-barracuda-676424.hostingersite.com
Description: Premium B2B multi-category procurement and supply marketplace theme for corporate, industrial, and institutional buyers.
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bp-brothers-b2b
*/

/* ==========================================
   1. DESIGN TOKENS & SYSTEM VARIABLES
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Curated elite corporate branding from B&P logo concept */
  --primary-hue: 222;
  --primary-sat: 47%;
  --primary-light: 11%;

  --primary: #0f172a;
  /* #0f172a - Deep Navy */
  --primary-light-bg: #f8fafc;
  /* Premium Light slate backdrop */
  --primary-hover: #1e293b;

  --secondary: #14532d;
  /* #14532d - Dark Green CTA */
  --secondary-hover: #166534;
  --secondary-light: #dcfce7;

  --accent: #d97706;
  /* #d97706 - Gold/Amber Accent */
  --accent-hover: #b45309;
  --accent-light: #fef3c7;

  --text-primary: #0f172a;
  /* Soft dark slate text */
  --text-muted: #64748b;
  /* Curated muted slate */
  --text-light: #f8fafc;

  --bg-main: #f1f5f9;
  /* Premium slate light backdrop */
  --bg-card: #ffffff;
  --bg-border: #cbd5e1;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing Spindle */
  --max-width: 1320px;
  --header-height: 64px;
  --border-radius-xs: 6px;
  --border-radius-sm: 10px;
  --border-radius-md: 18px;
  --border-radius-lg: 28px;
  --border-radius-capsule: 9999px;

  /* Vibrant Gradient Glassmorphic Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(217, 119, 6, 0.04);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 8px 16px -6px rgba(20, 83, 45, 0.04);
  --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-card-hover: 0 20px 40px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(217, 119, 6, 0.15);
  --shadow-glow-gold: 0 4px 24px rgba(217, 119, 6, 0.25);
  --shadow-glow-green: 0 4px 24px rgba(20, 83, 45, 0.2);

  /* Gradient Tokens */
  --gradient-gold: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #b45309 100%);
  --gradient-navy: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #020617 100%);
  --gradient-green: linear-gradient(135deg, #14532d 0%, #166534 50%, #15803d 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  --gradient-mesh: 
    radial-gradient(ellipse at 15% 10%, rgba(217, 119, 6, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(20, 83, 45, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(15, 23, 42, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 60%, rgba(217, 119, 6, 0.02) 0%, transparent 40%);

  /* Transitions */
  --transition-fast: 0.12s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   2. GLOBAL RESET & BASE STYLES
   ========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-main);
  background-image: var(--gradient-mesh);
  background-attachment: fixed;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

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

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

button {
  cursor: pointer;
  background: none;
}

ul {
  list-style: none;
}

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

/* ==========================================
   3. REUSABLE UTILITIES & BUTTONS
   ========================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: 1.25rem;
  padding-left: 1.25rem;
}

.section-padding {
  padding-top: 2rem;
  padding-bottom: 2.25rem;
}

.bg-white {
  background-color: var(--bg-card);
}

.bg-dark {
  background-color: var(--primary);
  color: var(--text-light);
}

/* Compact Heading */
.section-header {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--accent) 0%, var(--secondary) 50%, transparent 100%) 1;
  padding-bottom: 0.5rem;
}

.section-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-header h2 span {
  color: var(--accent);
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  font-weight: 600;
  border-radius: var(--border-radius-capsule);
  transition: all var(--transition-normal);
  font-size: 0.82rem;
  gap: 0.3rem;
}

.btn-primary {
  background: var(--gradient-gold);
  color: #ffffff;
  border-radius: var(--border-radius-capsule);
  box-shadow: 0 2px 12px rgba(204, 160, 53, 0.2);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow-gold);
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--gradient-green);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(19, 82, 54, 0.15);
}

.btn-secondary:hover {
  box-shadow: var(--shadow-glow-green);
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-outline {
  border: 1px solid var(--bg-border);
  background-color: transparent;
  color: var(--text-primary);
}

.btn-outline:hover {
  background-color: var(--primary-light-bg);
  border-color: var(--text-muted);
}

/* Rating Badge */
.rating-badge {
  display: inline-flex;
  align-items: center;
  background-color: #22c55e;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  gap: 0.15rem;
  width: fit-content;
}

/* Discount Badge */
.discount-badge {
  background-color: #e11d48;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15rem 0.35rem;
  border-radius: 2px;
  text-transform: uppercase;
}

/* ==========================================
   4. STICKY COMPACT ENTERPRISE HEADER
   ========================================== */
.top-utility-bar {
  background-color: #0b1329;
  color: #94a3b8;
  font-size: 0.72rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-utility-bar .contact-info span {
  margin-right: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.top-utility-bar .utility-links {
  display: flex;
  gap: 1.25rem;
}

.top-utility-bar .utility-links a:hover {
  color: #ffffff;
}

/* Primary Sticky Header */
.main-header {
  background: linear-gradient(135deg, rgba(255,255,255,0.78) 0%, rgba(250,248,242,0.72) 100%) !important;
  backdrop-filter: blur(24px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.8) !important;
  height: var(--header-height);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(204, 160, 53, 0.15);
  box-shadow: 0 4px 24px rgba(14, 34, 56, 0.06), 0 1px 0 rgba(204, 160, 53, 0.08);
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
}

/* Corporate Branding Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.logo-icon {
  background: var(--gradient-gold);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  font-family: var(--font-heading);
  box-shadow: 0 3px 12px rgba(204, 160, 53, 0.25);
}

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

.logo-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: uppercase;
}

.logo-subtitle {
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Massive Wide Center Search bar (Strongest visual element) */
.header-search {
  flex: 1;
  max-width: 680px;
  position: relative;
}

.search-wrapper {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.65) 0%, rgba(250,248,242,0.5) 100%) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(204, 160, 53, 0.12);
  border-radius: var(--border-radius-capsule);
  padding: 0.15rem;
  padding-left: 0.75rem;
  transition: all var(--transition-normal);
}

.search-wrapper:focus-within {
  border-color: var(--accent);
  background: rgba(255,255,255,0.9) !important;
  box-shadow: 0 0 0 3px rgba(204, 160, 53, 0.12), 0 4px 20px rgba(204, 160, 53, 0.08);
}

.search-input {
  background: transparent;
  flex: 1;
  padding: 0.45rem 0.5rem;
  color: var(--text-primary);
  font-size: 0.88rem;
}

.search-btn {
  background: var(--gradient-gold);
  color: #ffffff;
  padding: 0.45rem 1.25rem;
  border-radius: var(--border-radius-capsule);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(204, 160, 53, 0.2);
}

.search-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 16px rgba(204, 160, 53, 0.3);
}

/* Suggestions panel */
.search-suggestions {
  position: absolute;
  top: 105%;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(250,248,242,0.88) 100%);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(204, 160, 53, 0.1);
  border-radius: var(--border-radius-md);
  box-shadow: 0 16px 48px rgba(14, 34, 56, 0.1);
  z-index: 220;
  max-height: 280px;
  overflow-y: auto;
  display: none;
}

.suggestion-item {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--bg-main);
  cursor: pointer;
  font-size: 0.8rem;
}

.suggestion-item:hover {
  background-color: #f8fafc;
}

.suggestion-details {
  flex: 1;
}

.suggestion-title {
  font-weight: 600;
  color: var(--primary);
}

.suggestion-sku {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.suggestion-price {
  font-weight: 700;
  color: var(--accent);
}

/* Action Items */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.header-action-item {
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: pointer;
}

.header-action-item strong {
  color: var(--primary);
  font-size: 0.8rem;
}

.rfq-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--primary);
}

.rfq-cart-btn:hover {
  background-color: var(--accent-light);
  color: var(--accent);
}

.rfq-count {
  position: absolute;
  top: -3px;
  right: -3px;
  background-color: #e11d48;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 800;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bg-card);
}

/* ==========================================
   4A. MEGA HOVER DROPDOWN MENU
   ========================================== */
.category-dropdown-trigger {
  position: relative;
}

.mega-menu-overlay {
  display: none !important;
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 820px;
  height: 480px;
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: var(--border-radius-md);
  box-shadow: 0 16px 40px rgba(14, 34, 56, 0.12);
  z-index: 210;
  overflow: hidden;
  animation: fadeIn var(--transition-fast) ease-out;
}

/* Invisible bridge to prevent hover loss between trigger and dropdown */
.mega-menu-overlay::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
}

.category-dropdown-trigger:hover .mega-menu-overlay {
  display: flex !important;
}

/* Left Sidebar categories selection */
.menu-left-pane {
  width: 250px;
  background-color: rgba(246, 244, 237, 0.5);
  border-right: 1px solid rgba(230, 227, 218, 0.6);
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
  flex-shrink: 0;
  overflow-y: auto;
}

.menu-category-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  transition: all var(--transition-fast);
  font-family: var(--font-heading);
}

.menu-category-item svg {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.menu-category-item:hover,
.menu-category-item.active {
  background-color: #ffffff;
  color: var(--accent);
}

.menu-category-item:hover svg,
.menu-category-item.active svg {
  color: var(--accent);
  transform: translateX(2px);
}

/* Right content display */
.menu-right-pane {
  flex: 1;
  padding: 1.25rem 1.5rem;
  background-color: transparent;
  overflow-y: auto;
}

.subcat-panel {
  display: none;
  height: 100%;
}

.subcat-panel.active {
  display: block;
}

.subcat-panel h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--bg-border);
  font-family: var(--font-heading);
}

.subcat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.subcat-group-title {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-family: var(--font-heading);
}

.subcat-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.subcat-links li a {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: inline-block;
  transition: color var(--transition-fast);
}

.subcat-links li a:hover {
  color: var(--accent);
}

/* ==========================================
   5. COMPACT TOP CATEGORY ICON STRIP
   ========================================== */
.top-category-strip {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0;
  z-index: 500;
  position: relative;
}

.strip-scroll-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 1.25rem;
}

.strip-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.18s ease;
  flex-shrink: 0;
  background: none;
}

.category-title-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 0.4rem 0.6rem;
  border-bottom: 3px solid transparent;
  transition: all 0.18s ease;
}

.cat-item:hover .category-title-link,
.cat-item.active .category-title-link {
  border-bottom-color: #da251c;
  color: #da251c;
}

.cat-icon-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background-color: #f8fafc;
  border-radius: 50%;
  margin-bottom: 0.4rem;
  color: var(--primary);
  transition: all var(--transition-fast);
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  overflow: hidden;
}

.cat-item:hover .cat-icon-placeholder,
.cat-item.active .cat-icon-placeholder {
  background-color: #fef2f2;
  color: #da251c;
  border-color: #fecaca;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(218, 37, 28, 0.1);
}

.cat-item .cat-icon-placeholder svg,
.cat-item .cat-icon-placeholder svg.duotone-icon {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  opacity: 0.85;
  transition: all 0.18s ease;
  display: block;
}

.cat-item:hover .cat-icon-placeholder svg,
.cat-item.active .cat-icon-placeholder svg {
  opacity: 1;
  transform: scale(1.05);
}

.cat-name-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #374151;
  font-family: var(--font-body);
  transition: color 0.18s ease;
  text-align: center;
  line-height: 1.25;
  max-width: 110px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.cat-item:hover .cat-name-label,
.cat-item.active .cat-name-label {
  color: #da251c;
  font-weight: 700;
}

/* ── Mega Dropdown — FIXED position, JS sets `top` and `left` dynamically ── */
.category-mega-dropdown {
  position: fixed;
  top: 114px;
  left: 0;
  width: auto;
  max-width: 95vw;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #da251c;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  padding: 1.5rem;
  box-sizing: border-box;
  z-index: 9999;
  display: none;
  text-align: left;
  pointer-events: none;
}

.cat-item.active > .category-mega-dropdown {
  display: block !important;
  pointer-events: auto;
  animation: fadeIn 0.18s ease-out;
}

.mega-dropdown-inner {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* For subcategory groups layout */
.category-mega-dropdown.has-subgroups .mega-dropdown-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.category-mega-dropdown.has-subgroups .mega-dropdown-column {
  width: calc(25% - 1.15rem);
  min-width: 200px;
  margin-bottom: 1rem;
}

.mega-dropdown-column h5 {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.column-title-icon {
  color: #da251c;
  display: inline-flex;
  align-items: center;
}

.mega-dropdown-column h5 a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  white-space: normal;
  display: inline;
}

.mega-dropdown-column h5 a:hover {
  color: #da251c;
}

.mega-dropdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-dropdown-list li {
  margin-bottom: 0.35rem;
}

.mega-dropdown-list li a {
  font-size: 0.76rem;
  color: #4b5563;
  text-decoration: none;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.list-bullet-dot {
  width: 4px;
  height: 4px;
  background-color: #cbd5e1;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.mega-dropdown-list li a:hover {
  color: #da251c;
  transform: translateX(2px);
}

.mega-dropdown-list li a:hover .list-bullet-dot {
  background-color: #da251c;
}

/* For simple grid layout when there are no grandchildren */
.category-mega-dropdown.simple-grid .category-grid-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-grid-list li a {
  font-size: 0.78rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0;
}

.grid-item-icon {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease, transform 0.15s ease;
}

.category-grid-list li a:hover {
  color: #da251c;
  transform: translateX(3px);
}

.category-grid-list li a:hover .grid-item-icon {
  color: #da251c;
  transform: scale(1.1);
}

.strip-card-icon {
  font-size: 0.9rem;
}

.strip-card-text {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

/* ==========================================
   6. COMPACT HERO SECTION (300px HEIGHT)
   ========================================== */
.hero-wrapper {
  background-color: #f1f5f9;
  padding: 1rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1rem;
  height: 300px;
  /* Reduced compact height */
}

/* Left Autoplay slider banner */
.hero-slider-container {
  height: 100%;
  background-color: var(--primary);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.slider-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform var(--transition-slow) cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-item {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  color: #ffffff;
  padding: 2rem 3rem;
}

.slide-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(11, 19, 41, 0.92) 35%, rgba(11, 19, 41, 0.3) 100%);
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 5;
  max-width: 480px;
}

.slide-content h2 {
  font-size: 1.85rem;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.slide-content h2 span {
  color: var(--accent);
}

.slide-content p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.slider-arrow:hover {
  background-color: var(--accent);
}

.arrow-prev {
  left: 0.75rem;
}

.arrow-next {
  right: 0.75rem;
}

.slider-dots {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
  z-index: 10;
}

.slider-dot {
  width: 6px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
}

.slider-dot.active {
  background-color: var(--accent);
  width: 14px;
  border-radius: 7px;
}

/* Right Quick RFQ Form Card */
.hero-rfq-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(250,248,242,0.7) 100%);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--border-radius-md);
  padding: 1.1rem;
  box-shadow: 0 8px 32px rgba(14, 34, 56, 0.06), inset 0 1px 0 rgba(255,255,255,0.9);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-rfq-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(204, 160, 53, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-rfq-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.1rem;
}

.hero-rfq-card .subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: block;
}

.rfq-form-group {
  margin-bottom: 0.65rem;
}

.rfq-form-group label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.15rem;
}

.rfq-form-group select,
.rfq-form-group input,
.rfq-form-group textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
  border-radius: var(--border-radius-sm);
  background-color: #f8fafc;
}

.rfq-form-group select:focus,
.rfq-form-group input:focus,
.rfq-form-group textarea:focus {
  background-color: var(--bg-card);
  border-color: var(--accent);
}

/* ==========================================
   7. HIGH-DENSITY HORIZONTAL SCROLL DEALS CAROUSELS
   ========================================== */
.carousel-outer-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 0.5rem;
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.5rem 0.25rem 1.25rem 0.25rem;
}

.carousel-track::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar completely */
}

/* Floating Scroll Buttons */
.carousel-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background-color: #ffffff;
  border: 1px solid var(--bg-border);
  box-shadow: var(--shadow-md);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  color: var(--primary);
  font-weight: 700;
  transition: all var(--transition-fast);
  opacity: 1;
}

.carousel-scroll-btn:hover {
  background: var(--gradient-gold);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-glow-gold);
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn-prev {
  left: -20px;
}

.carousel-btn-next {
  right: -20px;
}

/* Force standard B2B card bounds in horizontal carousels */
.carousel-track .product-card {
  flex: 0 0 270px;
  /* Constant cards width */
}

/* ==========================================
   7B. NEW DISTINCT MARKETPLACE WIREFRAMES
   ========================================== */

/* Split layout grid (Section 2) */
.split-grid-wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
}

.split-promo-banner {
  background: linear-gradient(135deg, #1a2942 0%, #0e2238 40%, #162d4a 100%);
  border: 1px solid rgba(204, 160, 53, 0.08);
  border-radius: var(--border-radius-md);
  padding: 1.75rem 1.5rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(14, 34, 56, 0.12);
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.split-promo-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 111, 0, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.split-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* Hybrid 3-Column List Shelf (Section 3) */
.list-shelf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.list-shelf-column-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.88) 0%, rgba(250,248,242,0.78) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(230, 227, 218, 0.5);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.list-shelf-column-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.list-shelf-column-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--accent), var(--secondary), transparent) 1;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
}

.product-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--bg-border);
  transition: all var(--transition-fast);
}

.product-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.product-list-item:hover {
  transform: translateX(3px);
}

.list-item-img {
  width: 54px;
  height: 54px;
  background-color: #f8fafc;
  border: 1px solid var(--bg-border);
  border-radius: var(--border-radius-sm);
  padding: 0.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-item-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.list-item-details {
  flex: 1;
  min-width: 0;
}

.list-item-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}

.list-item-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.list-item-price {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
}

.list-item-moq {
  font-size: 0.62rem;
  color: var(--text-muted);
}

/* Category Showcase Shelf (Section 4) */
.showcase-shelf-grid {
  display: grid;
  grid-template-columns: 280px repeat(3, 1fr);
  gap: 1.25rem;
}

.showcase-marketing-card {
  background: linear-gradient(135deg, var(--secondary) 0%, #1d4ed8 100%);
  border: 1px solid var(--bg-border);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--accent);
  min-height: 100%;
}

/* ==========================================
   8. FIXED FLOATING SIDEBAR B2B BADGE (QUICK RFQ)
   ========================================== */
.sticky-rfq-badge {
  position: fixed;
  right: 0;
  top: 60%;
  transform: translateY(-50%);
  background-color: var(--accent);
  color: #ffffff;
  padding: 1.1rem 0.65rem;
  border-radius: 4px 0 0 4px;
  z-index: 900;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  border-left: 2px solid #ffffff;
  transition: all var(--transition-fast);
}

.sticky-rfq-badge:hover {
  transform: translateY(-50%) translateX(-4px);
  background-color: var(--accent-hover);
}

/* ==========================================
   9. HIGH-DENSITY RETAIL-WHOLESALE B2B CARD DESIGN (border-radius: 8px)
   ========================================== */
.product-card {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-card);
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius-md);
  padding: 1px;
  background: linear-gradient(135deg, rgba(204,160,53,0) 0%, rgba(204,160,53,0) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background var(--transition-normal);
  z-index: 2;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(204, 160, 53, 0.2);
}

.product-card:hover::before {
  background: linear-gradient(135deg, rgba(204,160,53,0.3) 0%, rgba(19,82,54,0.15) 50%, rgba(204,160,53,0.1) 100%);
}

.product-image-container {
  height: 140px;
  position: relative;
  background: linear-gradient(135deg, rgba(248,250,252,0.9) 0%, rgba(241,245,249,0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(230, 227, 218, 0.3);
}

.product-image-container img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-badge-tag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
}

.product-sku-tag {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  font-size: 0.6rem;
  background-color: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
}

.product-card-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Brand line at top */
.product-card-brand {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
  letter-spacing: 0.05em;
}

.product-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 0.35rem;
  height: 2.2rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card-rating-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.rating-reviews {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.product-card-specs {
  font-size: 0.7rem;
  color: var(--text-muted);
  background-color: #f8fafc;
  padding: 0.3rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
  border: 1px dashed var(--bg-border);
}

.card-spec-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.1rem;
}

.card-spec-row:last-child {
  margin-bottom: 0;
}

/* Moglix Pricing visual structures V3 */
.product-card-pricing {
  margin-top: auto;
  border-top: 1px solid var(--bg-main);
  padding-top: 0.55rem;
  margin-bottom: 0.55rem;
}

.mrp-row {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}

.mrp-crossed {
  text-decoration: line-through;
  margin-right: 0.25rem;
}

.mrp-discount-badge {
  color: #22c55e;
  font-weight: 700;
}

.wholesale-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.trade-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
}

.trade-price span {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
}

.tax-indicator-tag {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 0.05rem;
}

.moq-indicator {
  font-size: 0.65rem;
  font-weight: 700;
  background-color: var(--accent-light);
  color: var(--accent);
  padding: 0.05rem 0.35rem;
  border-radius: 2px;
}

/* Card Button Group */
.card-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.card-actions .btn {
  width: 100%;
  padding: 0.45rem 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 4px;
  text-align: center;
  justify-content: center;
  display: inline-flex;
  align-items: center;
}

/* Empty Search Overlay */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--border-radius-md);
}

/* ==========================================
   10. DETAILED SPECIFICATIONS PAGE (`product.html`)
   ========================================== */
.breadcrumbs {
  padding: 0.65rem 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span {
  margin: 0 0.3rem;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background-color: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
}

/* Visual Panel */
.product-detail-visuals {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.main-preview-container {
  height: 340px;
  background-color: #f8fafc;
  border: 1px solid var(--bg-border);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
}

.main-preview-container img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.main-preview-box {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 5;
}

.main-preview-container:hover .main-preview-box {
  opacity: 1;
}

.thumbnail-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.thumbnail-item {
  height: 68px;
  border: 1px solid var(--bg-border);
  background-color: #f8fafc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: var(--text-muted);
  border-radius: var(--border-radius-sm);
}

.thumbnail-item.active,
.thumbnail-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.thumbnail-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Details Panel */
.product-info-panel {
  display: flex;
  flex-direction: column;
}

.product-cat-path {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}

.product-main-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--bg-border);
  padding-bottom: 0.65rem;
}

.product-highlights {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 1.1rem;
  line-height: 1.45;
}

/* Tiered wholesale details */
.pricing-matrix-box {
  background-color: var(--primary-light-bg);
  border: 1px solid var(--bg-border);
  border-radius: var(--border-radius-md);
  padding: 1rem;
  margin-bottom: 1.1rem;
}

.pricing-matrix-box h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.matrix-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--bg-border);
}

.matrix-table td {
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--bg-border);
}

.matrix-price {
  font-weight: 700;
  color: var(--accent);
  text-align: right;
}

/* Calculator box */
.procurement-calculator-card {
  background-color: #fff8f5;
  border: 1px solid #ffe0b2;
  border-radius: var(--border-radius-md);
  padding: 1.1rem;
  margin-bottom: 1.1rem;
}

.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.calc-field label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.qty-input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  background-color: var(--bg-card);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.qty-btn {
  padding: 0.35rem 0.65rem;
  background-color: #f1f5f9;
  color: var(--primary);
  font-weight: 700;
}

.qty-btn:hover {
  background-color: #cbd5e1;
}

.qty-input {
  width: 100%;
  text-align: center;
  font-weight: 700;
  padding: 0.35rem;
}

.calc-estimate-box {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-sm);
  border: 1px solid #ffe0b2;
  padding: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.est-left {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.est-price-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
}

.brochure-download-block {
  background-color: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--border-radius-md);
  padding: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.brochure-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brochure-icon {
  background-color: #fee2e2;
  color: #e11d48;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.45rem;
  border-radius: 2px;
}

.brochure-title {
  font-size: 0.76rem;
  font-weight: 700;
}

.brochure-size {
  font-size: 0.62rem;
  color: var(--text-muted);
}

/* Tabs Panel styling */
.tabs-navigation {
  display: flex;
  border-bottom: 2px solid var(--bg-border);
  margin-bottom: 1rem;
}

.tab-trigger {
  padding: 0.65rem 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.tab-trigger:hover {
  color: var(--accent);
}

.tab-trigger.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-content {
  display: none;
  animation: fadeIn var(--transition-fast) ease-out;
}

.tab-content.active {
  display: block;
}

/* Spec Tables */
.specifications-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  background-color: var(--bg-card);
  border: 1px solid var(--bg-border);
}

.specifications-table tr {
  border-bottom: 1px solid var(--bg-border);
}

.specifications-table tr:last-child {
  border-bottom: none;
}

.specifications-table td {
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
}

.specifications-table td:first-child {
  font-weight: 700;
  color: var(--primary);
  width: 30%;
  background-color: #f8fafc;
}

/* ==========================================
   11. REQUEST FOR QUOTE (RFQ) DRAWER INTERFACE
   ========================================== */
.rfq-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.rfq-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.rfq-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background-color: var(--bg-card);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.rfq-modal-overlay.active .rfq-drawer {
  transform: translateX(0);
}

.rfq-drawer-header {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--bg-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rfq-drawer-header h3 {
  font-size: 1rem;
  font-weight: 800;
}

.close-rfq-drawer {
  font-size: 1.25rem;
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-rfq-drawer:hover {
  background-color: #f1f5f9;
  color: var(--primary);
}

.rfq-drawer-body {
  padding: 1.1rem;
  overflow-y: auto;
  flex: 1;
}

.rfq-selected-product {
  background-color: #f8fafc;
  border: 1px solid var(--bg-border);
  padding: 0.65rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.rfq-selected-icon {
  background-color: var(--accent);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.68rem;
}

.rfq-selected-info h4 {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.rfq-selected-info p {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.rfq-success-container {
  text-align: center;
  padding: 1.5rem 0.55rem;
  display: none;
}

.rfq-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #d1fae5;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  font-size: 1.25rem;
  font-weight: 700;
}

.rfq-receipt-box {
  background-color: #f8fafc;
  border: 1px dashed var(--bg-border);
  padding: 0.75rem;
  font-size: 0.75rem;
  text-align: left;
  margin-top: 0.75rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.3rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #f1f5f9;
}

.receipt-row:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

/* ==========================================
   12. GRAND ENTERPRISE FOOTER
   ========================================== */
.footer-top {
  background: linear-gradient(135deg, #0b1329 0%, #0e2238 40%, #0d1f33 100%);
  color: #94a3b8;
  padding: 3rem 0 1.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.footer-top::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(204, 160, 53, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-top::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -30px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(19, 82, 54, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 2rem;
}

.footer-logo-block .logo-icon {
  background: var(--gradient-gold);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(204, 160, 53, 0.3);
}

.footer-logo-block .logo-title {
  color: #ffffff;
}

.footer-logo-block .logo-subtitle {
  color: var(--accent);
}

.footer-desc {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0.75rem 0;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 0.4rem;
}

.social-icon {
  background-color: rgba(255, 255, 255, 0.05);
  width: 26px;
  height: 26px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.social-icon:hover {
  background: var(--gradient-gold);
  box-shadow: 0 2px 12px rgba(204, 160, 53, 0.3);
}

.footer-heading {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.3rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  font-size: 0.75rem;
  color: #94a3b8;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact li {
  margin-bottom: 0.65rem;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.footer-contact svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.12rem;
}

.footer-newsletter p {
  font-size: 0.75rem;
  margin-bottom: 0.65rem;
}

.newsletter-form {
  display: flex;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  padding: 0.12rem;
  border-radius: var(--border-radius-capsule);
  border: 1px solid rgba(204, 160, 53, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.newsletter-form input {
  background: transparent;
  flex: 1;
  padding: 0.3rem 0.5rem;
  color: #ffffff;
  font-size: 0.75rem;
}

.newsletter-form input::placeholder {
  color: #475569;
}

.newsletter-form .btn {
  padding: 0 0.65rem;
  font-size: 0.72rem;
}

.footer-bottom {
  background: linear-gradient(135deg, #050a15 0%, #060b18 100%);
  color: #64748b;
  font-size: 0.68rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(204, 160, 53, 0.06);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom-links {
  display: flex;
  gap: 1rem;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* ==========================================
   13. BRAND LOGOS & TESTIMONIALS
   ========================================== */
.brand-showcase {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0.65;
}

.brand-logo-img {
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-muted);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.testimonial-card {
  background-color: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--border-radius-md);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.quote-text {
  font-size: 0.78rem;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.author-info h4 {
  font-size: 0.75rem;
}

.author-info p {
  font-size: 0.62rem;
  color: var(--text-muted);
}

/* ==========================================
   14. KEYFRAME ANIMATIONS
   ========================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spotlight-card-hover {
  transition: all var(--transition-normal);
}

.spotlight-card-hover:hover {
  transform: translateY(-2.5px);
  box-shadow: var(--shadow-md) !important;
  border-color: var(--accent) !important;
}

/* ==========================================
   14B. DENSE MOGLIX-STYLE SHOP BY CATEGORY GRID
   ========================================== */
.category-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.category-shop-card {
  background-color: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  border-top: 3.5px solid var(--bg-border);
}

.category-shop-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.category-shop-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--bg-main);
  padding-bottom: 0.5rem;
}

.category-shop-icon {
  font-size: 1.25rem;
  background-color: var(--primary-light-bg);
  width: 38px;
  height: 38px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bg-border);
}

.category-shop-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
}

.category-shop-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.category-shop-item {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  font-weight: 500;
}

.category-shop-item:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.category-shop-item::before {
  content: "•";
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
}

.category-shop-explore {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
  transition: color var(--transition-fast);
}

.category-shop-explore:hover {
  color: var(--accent);
}

@media (max-width: 992px) {
  .category-shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .category-shop-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   15. RESPONSIVE DESIGN & MOBILE OPTIMIZATION
   ========================================== */
@media (max-width: 1200px) {
  .mega-menu-overlay {
    width: 900px;
  }

  .hero-grid {
    grid-template-columns: 1fr 300px;
  }
}

@media (max-width: 992px) {
  .section-padding {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }

  .main-header {
    height: 60px;
  }

  .header-search {
    max-width: 340px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .mega-menu-overlay {
    display: none !important;
  }

  .sticky-rfq-badge {
    display: none;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .carousel-scroll-btn {
    display: none !important;
  }

  .carousel-track {
    overflow-x: auto;
    padding-bottom: 0.75rem;
  }

  .carousel-track .product-card {
    flex: 0 0 230px;
  }
}

@media (max-width: 576px) {
  .main-header .container {
    flex-wrap: wrap;
    gap: 0.4rem;
    height: auto;
    padding: 0.65rem 1rem;
  }

  .brand-logo {
    order: 1;
  }

  .header-actions {
    order: 2;
  }

  .header-search {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .top-utility-bar {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }
}

/* ==========================================================================
   16. MOGLIX-STYLE ADVANCED B2B PROCUREMENT DEVELOPMENTS
   ========================================================================== */

/* A. SLIDING B2B RFQ CART DRAWER */
.rfq-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.rfq-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.rfq-drawer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.95);
  width: 580px;
  max-width: 95vw;
  height: 85vh;
  max-height: 720px;
  background-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 32px 80px rgba(14, 34, 56, 0.28);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity var(--transition-normal);
}

.rfq-drawer-overlay.active .rfq-drawer {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Backward compatibility for original single-item overlay class bindings */
.rfq-modal-overlay.active .rfq-drawer {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.rfq-drawer-header {
  padding: 1.25rem 1.5rem;
  background-color: rgba(14, 34, 56, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

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

.rfq-drawer-close {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
  line-height: 1;
}

.rfq-drawer-close:hover {
  color: var(--accent);
}

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

/* Sourcing List Items */
.rfq-cart-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.rfq-cart-item {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius-md);
  padding: 0.85rem;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 0.85rem;
  position: relative;
  box-shadow: 0 4px 12px rgba(14, 34, 56, 0.03);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.rfq-cart-item:hover {
  transform: translateY(-1.5px);
  border-color: var(--text-muted);
}

.rfq-item-img {
  background-color: var(--primary-light-bg);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  padding: 0.35rem;
  border: 1px solid var(--bg-border);
}

.rfq-item-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.rfq-item-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rfq-item-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.15rem;
  line-height: 1.3;
}

.rfq-item-meta {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.rfq-item-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.rfq-item-price-calc {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
}

.rfq-item-price-mrp {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.rfq-item-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.rfq-item-qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--bg-border);
  border-radius: var(--border-radius-sm);
  background-color: var(--primary-light-bg);
}

.rfq-item-qty-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

.rfq-item-qty-input {
  width: 32px;
  height: 24px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  border-left: 1px solid var(--bg-border);
  border-right: 1px solid var(--bg-border);
  background: #ffffff;
}

.rfq-item-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.rfq-item-remove:hover {
  color: #e11d48;
}

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

.rfq-cart-empty-icon {
  font-size: 3rem;
  color: #cbd5e1;
}

/* GSTIN Checker & Sourcing Form */
.rfq-checkout-section {
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius-md);
  padding: 1.15rem;
  box-shadow: 0 4px 16px rgba(14, 34, 56, 0.04);
}

.rfq-checkout-section h4 {
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--bg-border);
  padding-bottom: 0.4rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.gstin-checker-row {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.gstin-input {
  border: 1px solid #cbd5e1;
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
  border-radius: var(--border-radius-sm);
  background-color: var(--primary-light-bg);
  text-transform: uppercase;
  font-weight: 600;
}

.gstin-input::placeholder {
  text-transform: none;
  font-weight: 400;
}

.gstin-input.valid {
  border-color: #22c55e;
  background-color: rgba(34, 197, 94, 0.05);
}

.gstin-input.invalid {
  border-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.05);
}

.gstin-badge {
  font-size: 0.6rem;
  font-weight: 700;
  color: #22c55e;
  background-color: rgba(34, 197, 94, 0.12);
  padding: 0.15rem 0.35rem;
  border-radius: 2px;
  margin-top: 0.25rem;
  display: none;
  width: fit-content;
}

/* Sourcing Cost Breakdowns */
.rfq-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.breakdown-row.discount {
  color: #22c55e;
  font-weight: 600;
}

.breakdown-row.tax {
  font-style: italic;
}

.breakdown-row.total {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  border-top: 1px dashed var(--bg-border);
  padding-top: 0.45rem;
  margin-top: 0.15rem;
}

/* B. BULK SOURCING SHEET CSV BOX */
.bulk-csv-card {
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(14, 34, 56, 0.04);
  margin-bottom: 1.5rem;
}

.bulk-csv-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bulk-csv-textarea {
  width: 100%;
  height: 80px;
  border: 1px solid #cbd5e1;
  border-radius: var(--border-radius-sm);
  padding: 0.6rem;
  font-size: 0.78rem;
  background-color: var(--primary-light-bg);
  resize: none;
  font-family: monospace;
  margin-top: 0.65rem;
  margin-bottom: 0.5rem;
}

.bulk-csv-textarea:focus {
  background-color: #ffffff;
  border-color: var(--accent);
}

/* C. MOGLIX-STYLE BRAND FILTER CORRIDOR & BANNERS */
.brand-filter-strip {
  background-color: #ffffff;
  border-bottom: 1px solid var(--bg-border);
  padding: 0.85rem 0;
  margin-bottom: 1rem;
}

.brand-filter-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  overflow-x: auto;
}

.brand-filter-card {
  background: var(--primary-light-bg);
  border: 1px solid var(--bg-border);
  padding: 0.45rem 1.15rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--primary);
  flex-shrink: 0;
  min-width: 130px;
  font-family: var(--font-heading);
}

.brand-filter-card:hover,
.brand-filter-card.active {
  background-color: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.brand-showcase-banner {
  background: linear-gradient(135deg, #0b1329 0%, #1e293b 100%);
  border-radius: var(--border-radius-md);
  padding: 1.5rem 2rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  display: none;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--accent);
}

.brand-showcase-banner.active {
  display: block;
  animation: fadeIn var(--transition-normal) ease-out;
}

.brand-banner-meta {
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.brand-banner-title {
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  font-family: var(--font-heading);
}

.brand-banner-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  max-width: 600px;
  line-height: 1.45;
}

/* D. INTERACTIVE B2B TRADE CREDIT SOURCING PORTAL */
.credit-portal-card {
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--border-radius-lg);
  padding: 1.75rem;
  box-shadow: 0 12px 36px rgba(14, 34, 56, 0.05);
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--secondary);
}

.credit-portal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .credit-portal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.credit-form-group {
  margin-bottom: 0.85rem;
}

.credit-form-group label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.credit-form-group input,
.credit-form-group select {
  width: 100%;
  border: 1px solid #cbd5e1;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  border-radius: var(--border-radius-sm);
  background-color: var(--primary-light-bg);
}

.credit-form-group input:focus,
.credit-form-group select:focus {
  background-color: #ffffff;
  border-color: var(--secondary);
}

/* Credit Display Card Graphic */
.credit-card-display {
  background: linear-gradient(135deg, rgba(14, 34, 56, 0.88) 0%, rgba(19, 82, 54, 0.82) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  color: #ffffff;
  position: relative;
  box-shadow: 0 12px 32px rgba(14, 34, 56, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 200px;
}

.credit-card-chip {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  width: 36px;
  height: 28px;
  border-radius: 4px;
}

.credit-card-type {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255, 111, 0, 0.3);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
}

.credit-card-number {
  font-family: monospace;
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  margin: 1rem 0;
  color: #e2e8f0;
}

.credit-limit-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.credit-limit-lbl {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
}

.credit-limit-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #22c55e;
  font-family: var(--font-heading);
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(34, 197, 94, 0.2);
}

.credit-holder-name {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.credit-loading-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 100%;
}

.credit-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(37, 99, 235, 0.15);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* E. CLIENT-SIDE PRINT SPEC-SHEET GENERATOR */
@media print {
  body * {
    visibility: hidden;
  }

  #spec-print-datasheet,
  #spec-print-datasheet * {
    visibility: visible;
  }

  #spec-print-datasheet {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background-color: #ffffff;
    color: #0f172a;
    padding: 0;
    margin: 0;
    font-size: 12px;
  }

  /* Print layout elements formatting */
  .print-page-header {
    border-bottom: 2px solid #0f172a;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .print-logo {
    font-weight: 800;
    font-size: 20px;
    color: #0f172a;
  }

  .print-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .print-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
  }

  .print-spec-table th,
  .print-spec-table td {
    border: 1px solid #cbd5e1;
    padding: 6px 10px;
    text-align: left;
  }

  .print-spec-table th {
    background-color: #f1f5f9;
  }

  .print-price-tiers {
    margin-top: 15px;
    border: 1px dashed #0f172a;
    padding: 10px;
    border-radius: 4px;
    background-color: #f8fafc;
  }

  /* Hide standard page elements */
  header,
  footer,
  .top-utility-bar,
  .top-category-strip,
  .hero-wrapper,
  section,
  .sticky-rfq-badge,
  #rfq-modal-overlay,
  .rfq-drawer-overlay,
  aside,
  .btn,
  button,
  iframe,
  .mega-menu-overlay {
    display: none !important;
  }
}

/* Printable specifications stylesheet skeleton */
#spec-print-datasheet {
  display: none;
}

/* ==========================================
   VIBRANT GLASSMORPHIC ANIMATIONS
   ========================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(204, 160, 53, 0.1); }
  50% { box-shadow: 0 0 20px 4px rgba(204, 160, 53, 0.08); }
}

/* Subtle animated gradient border for hero slider */
.hero-slider-container {
  position: relative;
}
.hero-slider-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius-md);
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(204,160,53,0.2), rgba(19,82,54,0.1), rgba(204,160,53,0.15));
  background-size: 200% 200%;
  animation: gradientShimmer 6s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

/* Add subtle pulse to the hero RFQ card */
.hero-rfq-card {
  animation: goldPulse 4s ease-in-out infinite;
}

/* Gradient badge accents */
.discount-badge {
  background: linear-gradient(135deg, #e11d48, #be123c) !important;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.2);
}

.rating-badge {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

/* Enhanced glass effect for no-results panel */
.no-results {
  background: linear-gradient(145deg, rgba(255,255,255,0.85) 0%, rgba(250,248,242,0.75) 100%) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ==========================================
   13. MULTI-DEVICE COMPATIBILITY & RESPONSIVE GRID LAYOUTS
   ========================================== */

/* Breakpoint 1: Medium Tablets and Small Laptops (under 992px) */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    height: auto;
    gap: 1.25rem;
  }

  .hero-slider-container {
    height: 280px;
  }

  .hero-rfq-card {
    height: auto;
    padding: 1.25rem;
  }

  .category-shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .split-grid-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .split-promo-banner {
    padding: 1.5rem;
    height: auto;
    min-height: 240px;
  }

  .split-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .list-shelf-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .showcase-shelf-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .showcase-marketing-card {
    grid-column: span 2;
    min-height: 200px;
  }

  .credit-portal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .recently-added-section div[style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
}

/* Breakpoint 2: Small Tablets, iPads, and Large Mobiles (under 768px) */
@media (max-width: 768px) {
  .top-utility-bar {
    display: none; /* Hide very tiny bar on tablet/mobile to save screen real estate */
  }

  .main-header {
    height: auto;
    padding: 0.65rem 0;
  }

  .main-header .container {
    flex-direction: column;
    gap: 0.65rem;
    align-items: stretch;
  }

  .brand-logo {
    justify-content: center;
    margin-bottom: 0.15rem;
  }

  .header-search {
    max-width: 100%;
    width: 100%;
  }

  .header-actions {
    justify-content: space-between;
    width: 100%;
    margin-top: 0.25rem;
  }

  .secondary-navbar {
    height: auto;
    padding: 0.65rem 0;
  }

  .secondary-navbar .container {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }

  .nav-links-left {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }

  .secondary-menu-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .catalog-sidebar {
    width: 100%;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .product-detail-visuals {
    max-width: 100%;
    width: 100%;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem 1.25rem !important;
  }

  .footer-logo-block {
    grid-column: span 2;
    margin-bottom: 1rem;
  }
}

/* Breakpoint 3: Standard Smartphones and Compact Devices (under 480px) */
@media (max-width: 480px) {
  .hero-slider-container {
    height: 220px;
  }

  .slide-item {
    padding: 1.25rem 1.5rem;
  }

  .slide-content h2 {
    font-size: 1.2rem !important;
    line-height: 1.3;
  }

  .slide-content p {
    font-size: 0.72rem !important;
    margin-bottom: 0.75rem;
  }

  .category-shop-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .split-grid-container {
    grid-template-columns: 1fr;
  }

  .list-shelf-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .showcase-shelf-grid {
    grid-template-columns: 1fr;
  }

  .showcase-marketing-card {
    grid-column: span 1;
  }

  #featured-products-grid {
    grid-template-columns: 1fr !important;
  }

  .recently-added-section div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .brand-filter-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.45rem !important;
  }

  .brand-filter-card {
    font-size: 0.68rem !important;
    padding: 0.4rem 0.25rem !important;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .footer-logo-block {
    grid-column: span 1;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* Compact tabs on Mobile Product Page */
  .tabs-navigation {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .tab-trigger {
    flex: 1 1 45%;
    font-size: 0.72rem !important;
    padding: 0.45rem 0.25rem !important;
    text-align: center;
  }
}

/* ==========================================
   14. MEGA MENU DROPDOWN STYLING
   (Consolidated and fully refactored in Section 5 above.)
   ========================================== */

/* ==========================================
   15. MOBILE RESPONSIVE INLINE-STYLE OVERRIDES (B2B MOBILE OPTIMIZATION)
   ========================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
  }
  .split-grid-wrapper {
    grid-template-columns: 1fr !important;
  }
  .split-grid-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .list-shelf-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .industries-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  /* Fix touch-scroll behavior on category strip */
  .strip-scroll-wrapper {
    overflow-x: auto !important;
    white-space: nowrap !important;
    display: flex !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .cat-item {
    flex: 0 0 auto !important;
    padding: 0.5rem 0.75rem !important;
  }
  
  .top-nav-bar .container {
    flex-direction: column;
    gap: 0.5rem;
  }
  .top-nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .utility-links {
    justify-content: center;
  }
  .header-search .search-wrapper {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .split-grid-container {
    grid-template-columns: 1fr !important;
  }
  .list-shelf-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .industries-grid {
    grid-template-columns: 1fr !important;
  }
  .testimonials-grid {
    grid-template-columns: 1fr !important;
  }
  .portfolio-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================
   PORTFOLIO PAGE — CLIENT BADGE STYLES
   ========================================== */
.portfolio-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  color: #ffffff;
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
}

/* Govt. Education — Blue */
.badge-education {
  background-color: #1d4ed8;
}

/* Private School — Amber */
.badge-private {
  background-color: #d97706;
}

/* Defence / Paramilitary — Dark Green */
.badge-defence {
  background-color: #15803d;
}

/* Govt. University — Purple */
.badge-university {
  background-color: #7c3aed;
}

/* Govt. Department — Slate */
.badge-dept {
  background-color: #475569;
}

/* Card hover lift — portfolio only */
.portfolio-client-card {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.portfolio-client-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ==========================================
   PORTFOLIO PAGE — CAROUSEL SLIDER
   ========================================== */
.CarouselWrapper {
  overflow: hidden;
  width: 100%;
  padding: 1rem 0 2rem 0;
}

.Carousel {
  display: flex;
  gap: 2rem;
  width: max-content;
  /* Smooth infinite linear scroll for the portfolio slider */
  animation: slidePortfolio 40s linear infinite;
}

/* Pause the slider when a user hovers to read a card */
.CarouselWrapper:hover .Carousel {
  animation-play-state: paused;
}

/* Slide exactly half the total width (since array is duplicated in PHP) */
@keyframes slidePortfolio {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 1rem));
  }
}

@media (max-width: 768px) {
  .portfolio-client-card {
    width: 85vw !important;
  }
}