/* ========================================
   MAXLUBE MODERN THEME - Italian Industrial Excellence
   ======================================== */

/* ========================================
   BROWSER CONSISTENCY RESET
   ======================================== */

/* Universal Box-Sizing - Critical for consistent width calculations */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* HTML/Body Width Constraints */
html {
  width: 100%;
  max-width: 100vw;
}

/* Prevent Horizontal Scroll */
html,
body {
  width: 100%;
  max-width: 100%;
}

/* Image Constraints */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Form Elements Width Fix */
input,
button,
textarea,
select {
  font: inherit;
  max-width: 100%;
}

/* Prevent Text Overflow */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Grid/Flex Container Fix - Prevent Overflow */
.grid,
[class*="grid-"],
.flex,
[class*="flex-"] {
  min-width: 0;
}

/* ========================================
   CSS VARIABLES
   ======================================== */

:root {
  /* Italian Flag Colors */
  --italy-green: #009246;
  --italy-white: #FFFFFF;
  --italy-red: #CE2B37;

  /* Maxlube Brand Colors */
  --maxlube-blue: #004A99;
  --maxlube-blue-dark: #003670;
  --maxlube-blue-light: #0066CC;
  --maxlube-orange: #FF6600;
  --maxlube-orange-light: #FF8833;

  /* Primary Color (alias for consistency) */
  --primary: var(--maxlube-blue);

  /* Modern Gradients */
  --gradient-italian: linear-gradient(90deg, var(--italy-green) 0%, var(--italy-white) 50%, var(--italy-red) 100%);
  --gradient-blue: linear-gradient(135deg, var(--maxlube-blue) 0%, var(--maxlube-blue-light) 100%);
  --gradient-orange: linear-gradient(135deg, var(--maxlube-orange) 0%, var(--maxlube-orange-light) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

  /* Dark Mode Colors */
  --dark-bg: #0A0E1A;
  --dark-surface: #141824;
  --dark-surface-2: #1E2330;
  --dark-text: #E4E8F1;
  --dark-text-secondary: #9CA3B8;

  /* Text Colors for Better Visibility */
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;

  /* Glass Morphism - Improved for better text visibility */
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-bg-dark: rgba(30, 35, 48, 0.92);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-shadow: 0 8px 32px 0 rgba(0, 74, 153, 0.08);
  --glass-blur: blur(8px);

  /* Shadows & Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.20);
  --shadow-glow-blue: 0 0 40px rgba(0, 102, 204, 0.3);
  --shadow-glow-green: 0 0 40px rgba(0, 146, 70, 0.3);
  --shadow-glow-red: 0 0 40px rgba(206, 43, 55, 0.3);

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-spring: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Typography */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Lato', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ========================================
   MODERN TYPOGRAPHY
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Lato:wght@300;400;700;900&family=Montserrat:wght@400;500;600;700;800;900&family=JetBrains+Mono&display=swap');

body.modern-theme {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a2e;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  position: relative;
  width: 100%;
  max-width: 100%;
}

body.modern-theme h1,
body.modern-theme h2,
body.modern-theme h3,
body.modern-theme h4,
body.modern-theme h5,
body.modern-theme h6 {
  font-family: var(--font-display);
  font-weight: 900;
}

body.modern-theme.dark-mode {
  background: var(--dark-bg);
  color: var(--dark-text);
}

/* ========================================
   MODERN NAVIGATION BAR
   ======================================== */

.navbar-modern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 1000;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
  animation: slideDown 0.5s ease-out;
}

.navbar-modern.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
}

.dark-mode .navbar-modern {
  background: rgba(20, 24, 36, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Italian Flag Accent Bar */
.italian-flag-bar {
  height: 3px;
  background: var(--gradient-italian);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

/* Logo Modern */
.logo-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
}

.logo-modern img {
  height: 48px;
  filter: drop-shadow(0 2px 8px rgba(0, 74, 153, 0.2));
  transition: var(--transition-bounce);
}

.logo-modern:hover img {
  transform: scale(1.05) rotate(-2deg);
  filter: drop-shadow(0 4px 16px rgba(0, 74, 153, 0.3));
}

.logo-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

/* Modern Search Bar */
.search-modern {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.search-input-modern {
  width: 100%;
  padding: 14px 50px 14px 20px;
  border: 2px solid transparent;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.search-input-modern:focus {
  outline: none;
  border-color: var(--maxlube-blue);
  box-shadow: var(--shadow-md), var(--shadow-glow-blue);
  transform: translateY(-2px);
}

.search-button-modern {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--gradient-blue);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}

.search-button-modern:hover {
  filter: brightness(1.05);
  box-shadow: none;
}

/* ========================================
   MODERN HERO SECTION
   ======================================== */

.hero-modern {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--maxlube-blue) 0%, var(--dark-bg) 100%);
}

/* Animated Background Pattern */
.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, .1) 35px, rgba(255, 255, 255, .1) 70px),
    repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(0, 146, 70, .1) 35px, rgba(0, 146, 70, .1) 70px);
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(70px, 70px);
  }
}

/* Floating Particles */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  opacity: 0.3;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 0.3;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

.hero-content-modern {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 1200px;
  animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.hero-title-modern {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

.title-highlight {
  background: linear-gradient(90deg, var(--italy-green) 0%, var(--italy-white) 33%, var(--italy-red) 66%, var(--italy-green) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* ========================================
   MODERN CARDS
   ======================================== */

.card-modern {
  background: white !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card-modern::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-italian);
  border-radius: 20px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.card-modern:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl), var(--shadow-glow-blue);
}

.card-modern:hover::before {
  opacity: 0.3;
}

/* ========================================
   MODERN PRODUCT GRID
   ======================================== */

.product-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.product-card-modern {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-card-modern .product-info {
  padding: 1.25rem;
  background: white;
}

/* Ensure text wrapper has white background */
.product-card-modern .p-6,
.product-card-modern [class*="p-"] {
  background: white !important;
}

.product-card-modern .product-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2d3748 !important;
  /* Lightened from #1a1a2e for better visibility */
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.product-card-modern .product-description {
  font-size: 0.875rem;
  color: #718096 !important;
  /* Lightened from #4a5568 for better visibility */
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.product-card-modern .product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--maxlube-blue) !important;
}

.product-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--maxlube-blue-light);
}

.product-image-modern {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.product-card-modern:hover .product-image-modern {
  transform: scale(1.1);
}

.product-badge-italian {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-italian);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 12px;
  box-shadow: var(--shadow-md);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* ========================================
   MODERN BUTTONS
   ======================================== */

.btn-modern {
  padding: 14px 32px;
  border: none;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: none !important;
  transform: none !important;
  animation: none !important;
}

.btn-modern:hover,
.btn-modern:active,
.btn-modern:focus,
.btn-modern:visited {
  transition: none !important;
  transform: none !important;
  animation: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.btn-modern.btn-soft-hover {
  transition: filter 160ms ease !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn-modern.btn-soft-hover:hover,
.btn-modern.btn-soft-hover:focus-visible {
  filter: brightness(1.04) !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn-modern.btn-soft-hover:active {
  filter: brightness(0.98) !important;
  box-shadow: none !important;
  transform: none !important;
}



.btn-modern-primary {
  background: var(--maxlube-blue) !important;
  color: white !important;
  box-shadow: none;
}

.btn-modern-italian {
  background: var(--primary);
  color: white;
  font-weight: 700;
  box-shadow: none;
}

.btn-modern-outline {
  background: transparent !important;
  color: var(--maxlube-blue) !important;
  border: 2px solid var(--maxlube-blue) !important;
  box-shadow: none;
}

.btn-modern-outline:hover {
  background: var(--maxlube-blue) !important;
  color: white !important;
}

.cta-contattaci {
  font-family: var(--font-display);
  font-weight: 500;
}



/* ========================================
   FLOATING ACTION BUTTON
   ======================================== */

.fab-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
}

.fab-main {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  position: relative;
  transition: none;
  transform: none;
  filter: none;
}

.fab-main:hover,
.fab-main:focus,
.fab-main:active {
  box-shadow: none;
  transform: none;
  filter: none;
}

.fab-italian-flag {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-italian);
  border: 2px solid white;
  box-shadow: var(--shadow-sm);
}

/* ========================================
   ANIMATIONS & INTERACTIONS
   ======================================== */

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.scale-in {
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Parallax Scrolling */
.parallax-section {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ========================================
   MODERN FOOTER
   ======================================== */

.footer-modern {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--maxlube-blue-dark) 100%);
  color: white;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.footer-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-italian);
}

.footer-wave {
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 50px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,25 C150,45 350,5 600,25 C850,45 1050,5 1200,25 L1200,50 L0,50 Z' fill='%23003670'/%3E%3C/svg%3E");
  background-size: cover;
  opacity: 0.5;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  gap: 0.5rem;
}

.footer-heading--spaced {
  margin-top: 0.5rem !important;
}

/* ========================================
   LOADING STATES
   ======================================== */

.skeleton-modern {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0.1) 100%);
  background-size: 200% 100%;
  animation: skeletonWave 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeletonWave {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

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

  .hero-title-modern {
    font-size: clamp(2.5rem, 7vw, 5rem);
  }
}

@media (max-width: 768px) {
  .hero-title-modern {
    font-size: clamp(2rem, 6vw, 4rem);
  }

  .product-grid-modern {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  .navbar-modern {
    padding: 0.5rem;
  }

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

  .card-modern {
    padding: 1.5rem;
  }

  .fab-container {
    bottom: 16px;
    right: 16px;
  }

  .fab-main {
    width: 56px;
    height: 56px;
  }

  .btn-modern {
    padding: 12px 24px;
    font-size: 14px;
  }

  .search-input-modern {
    padding: 12px 45px 12px 16px;
  }

  .footer-modern {
    padding: 3rem 0 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title-modern {
    font-size: clamp(1.75rem, 5vw, 3rem);
  }

  .product-grid-modern {
    grid-template-columns: 1fr;
  }

  .hero-content-modern {
    padding: 1rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ========================================
   DARK MODE STYLES
   ======================================== */

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

.dark-mode .card-modern {
  background: var(--glass-bg-dark);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--dark-text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.dark-mode .product-card-modern {
  background: var(--dark-surface);
  color: var(--dark-text);
  border-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .product-card-modern .product-info {
  background: var(--dark-surface);
}

.dark-mode .product-card-modern .product-title {
  color: var(--dark-text);
}

.dark-mode .product-card-modern .product-description {
  color: var(--dark-text-secondary);
}

.dark-mode .product-card-modern .product-price {
  color: var(--maxlube-orange);
}

.dark-mode .btn-modern-primary {
  background: var(--gradient-orange);
}

.dark-mode .search-input-modern {
  background: var(--dark-surface-2);
  color: var(--dark-text);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ========================================
   SMOOTH SCROLLING
   ======================================== */

html.modern-theme {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
.modern-theme::-webkit-scrollbar {
  width: 12px;
}

.modern-theme::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.modern-theme::-webkit-scrollbar-thumb {
  background: var(--gradient-blue);
  border-radius: 6px;
}

.modern-theme::-webkit-scrollbar-thumb:hover {
  background: var(--maxlube-blue-dark);
}

/* ========================================
   NAVIGATION LINKS
   ======================================== */

.nav-link-modern {
  padding: 0.5rem 1rem;
  color: #2d3748;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
  border-radius: 8px;
  display: flex;
  align-items: center;
}

.nav-link-modern:hover {
  color: var(--maxlube-blue);
  background-color: rgba(0, 74, 153, 0.05);
  transform: translateY(-2px);
}

.dark-mode .nav-link-modern {
  color: var(--dark-text);
}

.dark-mode .nav-link-modern:hover {
  color: var(--maxlube-orange);
  background-color: rgba(255, 102, 0, 0.1);
}

.dark-mode .form-label-modern {
  color: var(--dark-text);
}

.dark-mode .form-input-modern {
  background-color: var(--dark-surface);
  color: var(--dark-text);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .form-input-modern::placeholder {
  color: var(--dark-text-secondary);
}

.dark-mode .form-input-modern:focus {
  background-color: var(--dark-surface-2);
  border-color: var(--maxlube-orange);
  box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.1);
}

.dark-mode .feature-card {
  background: var(--dark-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark-mode .feature-title {
  color: white !important;
  /* Keep white text on gradient background */
}

.dark-mode .feature-description {
  color: rgba(255, 255, 255, 0.95) !important;
  /* Keep white text on gradient background */
}

.dark-mode .feature-card:hover {
  background: var(--dark-surface-2);
  border-color: var(--maxlube-orange);
  box-shadow: 0 16px 48px rgba(255, 102, 0, 0.1);
}

.dark-mode .navbar-modern {
  background: rgba(20, 24, 36, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ========================================
   FEATURES GRID
   ======================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.feature-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-italian);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  background: white;
  box-shadow: 0 16px 48px rgba(0, 74, 153, 0.15);
  border-color: var(--maxlube-blue-light);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 8px 24px rgba(0, 74, 153, 0.3);
  transition: var(--transition-bounce);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 12px 32px rgba(0, 74, 153, 0.4);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white !important;
  /* White text for visibility on gradient background */
}

.feature-description {
  color: rgba(255, 255, 255, 0.95) !important;
  /* Slightly transparent white for elegant look */
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ========================================
   ALERT MESSAGES
   ======================================== */

.alert-modern {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideDown 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

.alert-modern::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: currentColor;
  opacity: 0.8;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-info {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

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

/* ========================================
   FORM STYLING
   ======================================== */

.form-input-modern {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: var(--transition-smooth);
  background-color: white;
}

.form-input-modern:focus {
  outline: none;
  border-color: var(--maxlube-blue);
  box-shadow: 0 0 0 3px rgba(0, 74, 153, 0.1);
}

.form-input-modern.error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.form-label-modern {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
}

.form-error-modern {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #ef4444;
}

/* ========================================
   LOADING STATES
   ======================================== */

.spinner-modern {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--maxlube-blue);
  animation: spin 0.8s linear infinite;
}

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

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ========================================
   TOOLTIPS
   ======================================== */

.tooltip-modern {
  position: relative;
  display: inline-block;
}

.tooltip-modern .tooltip-text {
  visibility: hidden;
  background-color: #1f2937;
  color: white;
  text-align: center;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip-modern:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.breadcrumb-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.breadcrumb-modern a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-modern a:hover {
  color: var(--maxlube-blue);
}

.breadcrumb-modern .separator {
  color: #d1d5db;
}

/* ========================================
   CATEGORY CARDS - PRODUCTION READY
   ======================================== */

.category-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 74, 153, 0.12);
  border-color: var(--maxlube-blue-light);
}

.category-card .category-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: var(--gradient-blue);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  transition: var(--transition-bounce);
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
}

.category-card .category-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a2e !important;
  margin-bottom: 0.5rem;
  text-align: center;
}

.category-card .category-count {
  font-size: 0.875rem;
  color: #6b7280 !important;
  text-align: center;
}

.dark-mode .category-card {
  background: var(--dark-surface);
  border-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .category-card:hover {
  border-color: var(--maxlube-orange);
  box-shadow: 0 12px 32px rgba(255, 102, 0, 0.12);
}

.dark-mode .category-card .category-name {
  color: var(--dark-text);
}

.dark-mode .category-card .category-count {
  color: var(--dark-text-secondary);
}

/* ========================================
   BADGES
   ======================================== */

.badge-modern {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-success {
  background-color: #dcfce7;
  color: #166534;
}

.badge-warning {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-error {
  background-color: #fee2e2;
  color: #991b1b;
}

.badge-info {
  background-color: #dbeafe;
  color: #1e40af;
}

/* ========================================
   TABS
   ======================================== */

.tabs-modern {
  display: flex;
  border-bottom: 2px solid #e5e7eb;
}

.tab-modern {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.tab-modern:hover {
  color: var(--maxlube-blue);
}

.tab-modern.active {
  color: var(--maxlube-blue);
}

.tab-modern.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-blue);
}

/* ========================================
   PAGINATION IMPROVEMENTS
   ======================================== */

.pagination-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-modern a,
.pagination-modern span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.pagination-modern a {
  background: white;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.pagination-modern a:hover {
  background: #f3f4f6;
  border-color: var(--maxlube-blue);
  color: var(--maxlube-blue);
}

.pagination-modern span.current {
  background: var(--gradient-blue);
  color: white;
  font-weight: 600;
}

/* ========================================
   PRODUCTION POLISH - FINAL TOUCHES
   ======================================== */

/* Improved Text Selection */
::selection {
  background: rgba(0, 74, 153, 0.15);
  color: var(--maxlube-blue-dark);
}

.dark-mode ::selection {
  background: rgba(255, 102, 0, 0.25);
  color: var(--maxlube-orange);
}

/* Focus Visible for Accessibility */
*:focus-visible {
  outline: 2px solid var(--maxlube-blue);
  outline-offset: 2px;
}

.dark-mode *:focus-visible {
  outline-color: var(--maxlube-orange);
}

/* Container Text Improvements */
.container-text {
  color: #2d3748;
  line-height: 1.7;
}

.dark-mode .container-text {
  color: var(--dark-text);
}

/* Section Headers Polish */
.section-header {
  font-family: var(--font-display);
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 1rem;
}

.dark-mode .section-header {
  color: var(--dark-text);
}

/* Better Link States */


/* Improved Loading States */
.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--maxlube-blue);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Smooth Accordion Animations */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-content.active {
  max-height: 1000px;
  transition: max-height 0.5s ease-in;
}

/* Image Loading Polish */
img {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

/* Keep transparent logos truly transparent (avoid showing the loading background) */
.logo-modern img,
.hero__logo img,
img[data-landing-logo],
img[data-brand-logo] {
  background: transparent;
  display: block;
}

.dark-mode img {
  opacity: 0.9;
}

/* Container Padding Consistency */
.container {
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Category Cards - Fix Text Colors */
.card-modern {
  background: white !important;
}

.card-modern h3,
.card-modern .text-gray-900,
.card-modern .text-xl {
  color: #2d3748 !important;
  /* Lightened for better visibility */
  font-weight: 700;
}

.card-modern p,
.card-modern .text-gray-600 {
  color: #718096 !important;
  /* Lightened for better visibility */
}

.card-modern .text-maxlube-blue {
  color: var(--maxlube-blue) !important;
}

/* Product Card Text Fix */
.product-card-modern h3,
.product-card-modern .text-lg,
.product-card-modern .product-title,
h3.product-title {
  color: #2d3748 !important;
  /* Lightened for better visibility */
  font-weight: 700;
}

.product-card-modern p,
.product-card-modern .product-description,
p.product-description {
  color: #718096 !important;
  /* Lightened for better visibility */
}

/* Navigation Submenu Text Fix */
.navbar-modern .group:hover .card-modern a span {
  color: #1a1a2e !important;
}

.navbar-modern .absolute.top-full .card-modern {
  background: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.navbar-modern .absolute.top-full .card-modern a {
  color: #2d3748 !important;
}

.navbar-modern .absolute.top-full .card-modern a:hover {
  background: #f7fafc;
}

/* Brand Logos Styling */
.brand-logo {
  width: 100%;
  max-width: 120px;
  height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.brand-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.brand-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  min-height: 100px;
  transition: all 0.3s ease;
}

.brand-logo-container:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* Footer Logo Fix */
.footer-modern .logo-img {
  filter: brightness(0) invert(1);
  height: 48px;
}

/* ========================================
   INSTITUTIONAL BANNER - PRODUCT LIST CTA
   ======================================== */

/* Container Principal do Banner */
.institutional-banner {
  width: 100%;
  max-width: 100%;
  margin-top: 2rem;
  margin-bottom: 5rem;
}

/* Card do Banner */
.institutional-banner__container {
  display: flex;
  flex-direction: row;
  background: white;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  min-height: 300px;
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.institutional-banner__container:hover {
  box-shadow: 0 8px 32px rgba(0, 74, 153, 0.12);
  transform: translateY(-2px);
}

/* Lado Esquerdo: Imagem */
.institutional-banner__image {
  flex: 0 0 42%;
  position: relative;
  overflow: hidden;
  background: #f5f7fa;
  min-width: 0;
}

.institutional-banner__image img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center;
  display: block;
  background: transparent;
}

/* Lado Direito: Conteúdo Azul */
.institutional-banner__content {
  flex: 1;
  min-width: 0;
  background: var(--maxlube-blue);
  background: linear-gradient(135deg, var(--maxlube-blue) 0%, var(--maxlube-blue-dark) 100%);
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

/* Pattern decorativo sutil no fundo azul */
.institutional-banner__content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.05;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, .1) 35px, rgba(255, 255, 255, .1) 70px);
  pointer-events: none;
}

/* Título do Banner */
.institutional-banner__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Texto do Banner */
.institutional-banner__text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  margin: 0;
  max-width: 90%;
  position: relative;
  z-index: 1;
}

/* Botão CTA */
.institutional-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.5rem;
  background: white;
  color: var(--maxlube-blue);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  border: 2px solid white;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  position: relative;
  z-index: 1;
  margin-top: 0.5rem;
  box-shadow: none;
}

.institutional-banner__cta:hover {
  background: transparent;
  color: white;
  border-color: white;
  box-shadow: none;
}

.institutional-banner__cta:active {
  transform: none;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 1024px) {
  .institutional-banner__content {
    padding: 2rem 2.5rem;
  }

  .institutional-banner__title {
    font-size: 1.75rem;
  }

  .institutional-banner__text {
    font-size: 1rem;
  }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {

  /* Empilhamento Vertical */
  .institutional-banner__container {
    flex-direction: column;
    border-radius: 24px;
    min-height: auto;
  }

  /* Imagem em Cima */
  .institutional-banner__image {
    flex: 0 0 auto;
    min-height: 200px;
    max-height: 250px;
  }

  .institutional-banner__image img {
    object-fit: cover;
  }

  /* Conteúdo Embaixo */
  .institutional-banner__content {
    padding: 2rem 1.5rem;
  }

  .institutional-banner__title {
    font-size: 1.5rem;
  }

  .institutional-banner__text {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .institutional-banner__cta {
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    width: 100%;
    text-align: center;
  }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE
   ======================================== */
@media (max-width: 480px) {
  .institutional-banner {
    margin-top: 1.5rem;
    margin-bottom: 3rem;
  }

  .institutional-banner__container {
    border-radius: 20px;
  }

  .institutional-banner__image {
    min-height: 180px;
    max-height: 200px;
  }

  .institutional-banner__content {
    padding: 1.5rem 1.25rem;
  }

  .institutional-banner__title {
    font-size: 1.35rem;
  }

  .institutional-banner__text {
    font-size: 0.9rem;
  }
}

/* Dark Mode Support */
.dark-mode .institutional-banner__container {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.dark-mode .institutional-banner__container:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Fix for home page category text */
.home-categories .card-modern {
  background: white !important;
  border: 1px solid #e2e8f0;
}

.home-categories .card-modern h3,
.home-categories .card-modern .text-gray-900 {
  color: #2d3748 !important;
  /* Lightened for better visibility */
  font-weight: 700;
}

.home-categories .card-modern p,
.home-categories .card-modern .text-gray-600 {
  color: #718096 !important;
  /* Lightened for better visibility */
}

.home-categories .card-modern span.text-maxlube-blue,
.home-categories .card-modern .text-sm {
  color: var(--maxlube-blue) !important;
  font-weight: 600;
}

.home-categories .card-modern:hover {
  background: white !important;
  box-shadow: 0 8px 24px rgba(0, 74, 153, 0.12);
  transform: translateY(-4px);
}

/* ========================================
   CRITICAL FIX: Ensure Card Text Visibility
   ======================================== */

/* Override any dark backgrounds on cards */
.card-modern,
div.card-modern,
.home-categories .card-modern,
section .card-modern {
  background: white !important;
  background-color: white !important;
}

/* Force text colors for maximum visibility */
.card-modern h3,
.card-modern .text-xl.font-bold {
  color: #2d3748 !important;
  /* Lightened for better visibility */
}

.card-modern p {
  color: #718096 !important;
  /* Lightened for better visibility */
}

/* Product count MUST be visible */
.card-modern span.text-sm.text-maxlube-blue,
.card-modern .text-maxlube-blue,
span.text-maxlube-blue {
  color: #0066CC !important;
  /* Brighter blue for better visibility */
  font-weight: 600 !important;
}

/* ========================================
   LANGUAGE SELECTOR ENHANCEMENTS
   ======================================== */

/* Language Selector Button */
.language-selector-btn {
  transition: all 0.3s ease;
}

.language-selector-btn:hover {
  background-color: rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

/* Language Dropdown */
.language-dropdown {
  animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

/* Language Option Buttons */
.language-option {
  transition: all 0.2s ease;
}

.language-option:hover {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--maxlube-blue);
  transform: translateX(4px);
}

.language-option:active {
  transform: translateX(4px) scale(0.98);
}

/* Dark Mode Language Selector */
.dark-mode .language-selector-btn {
  color: var(--dark-text);
}

.dark-mode .language-selector-btn:hover {
  background-color: rgba(255, 102, 0, 0.1);
  color: var(--maxlube-orange);
}

.dark-mode .language-option {
  color: var(--dark-text);
}

.dark-mode .language-option:hover {
  background-color: rgba(255, 102, 0, 0.1);
  color: var(--maxlube-orange);
}

/* ========================================
   MISSING CSS CLASSES - ADDED FOR COMPLETENESS
   ======================================== */

/* Dark Mode Toggle Button */
.dark-mode-toggle {
  transition: all 0.3s ease;
  cursor: pointer;
}

.dark-mode .dark-mode-toggle {
  color: #fbbf24 !important;
  /* Yellow/sun icon in dark mode */
  transform: rotate(180deg);
}

/* Counter Badge */
.counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--maxlube-blue);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  min-width: 1.5rem;
  height: 1.5rem;
  transition: all 0.3s ease;
}

.counter:hover {
  transform: scale(1.1);
  background: var(--maxlube-blue-dark);
}

/* Active Accordion Item */
.activeAccordion {
  background-color: rgba(0, 74, 153, 0.05);
  border-left: 4px solid var(--maxlube-blue);
  padding-left: calc(1rem - 4px);
  transition: all 0.3s ease;
}

.activeAccordion .accordion-header {
  color: var(--maxlube-blue);
  font-weight: 600;
}

.activeAccordion .accordion-icon {
  transform: rotate(180deg);
}

/* Active Tab */
.activeTab {
  background-color: white;
  color: var(--maxlube-blue);
  border-bottom: 3px solid var(--maxlube-blue);
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

.activeTab::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-blue);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    width: 0;
    left: 50%;
  }

  to {
    width: 100%;
    left: 0;
  }
}

/* Error Note for Forms */
.errornote {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  color: #991b1b;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  animation: shakeError 0.3s ease;
}

.errornote::before {
  content: '⚠️';
  font-size: 1.25rem;
}

@keyframes shakeError {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

.dark-mode .errornote {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* ========================================
   STICKY SIDEBAR - Product List & Category Pages
   ======================================== */

@media (min-width: 1024px) {
  /* Ensure main and containers allow sticky to work */
  main,
  .h-screen-container {
    overflow: visible !important;
  }

  /* Sidebar sticky container */
  .filters-sidebar-wrapper {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 120px !important;
    align-self: start !important;
    height: fit-content !important;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    z-index: 10;
  }

  .filters-sidebar-wrapper::-webkit-scrollbar {
    width: 6px;
  }

  .filters-sidebar-wrapper::-webkit-scrollbar-track {
    background: transparent;
  }

  .filters-sidebar-wrapper::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
  }
}
