/* Vitabex Design System - Main Styles */

/* CSS Custom Properties (Variables) */
:root {
  /* Primary Colors */
  --vitabex-primary: #2563eb;
  --vitabex-primary-light: #dbeafe;
  --vitabex-primary-dark: #1d4ed8;

  /* Secondary Colors */
  --vitabex-secondary: #7c3aed;
  --vitabex-secondary-light: #ede9fe;
  --vitabex-secondary-dark: #6d28d9;

  /* Neutral Colors */
  --vitabex-white: #ffffff;
  --vitabex-light: #f8fafc;
  --vitabex-gray-50: #f9fafb;
  --vitabex-gray-100: #f3f4f6;
  --vitabex-gray-200: #e5e7eb;
  --vitabex-gray-300: #d1d5db;
  --vitabex-gray-400: #9ca3af;
  --vitabex-gray-500: #6b7280;
  --vitabex-gray-600: #4b5563;
  --vitabex-gray-700: #374151;
  --vitabex-gray-800: #1f2937;
  --vitabex-gray-900: #111827;

  /* Text Colors */
  --vitabex-text-dark: #1f2937;
  --vitabex-text-muted: #6b7280;
  --vitabex-text-light: #9ca3af;

  /* Status Colors */
  --vitabex-success: #10b981;
  --vitabex-success-light: #d1fae5;
  --vitabex-warning: #f59e0b;
  --vitabex-warning-light: #fef3c7;
  --vitabex-danger: #ef4444;
  --vitabex-danger-light: #fee2e2;
  --vitabex-info: #3b82f6;
  --vitabex-info-light: #dbeafe;

  /* Border Colors */
  --vitabex-border: #e5e7eb;
  --vitabex-border-light: #f3f4f6;

  /* Shadow Colors */
  --vitabex-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --vitabex-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --vitabex-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --vitabex-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --vitabex-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Typography */
  --vitabex-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --vitabex-font-mono: 'SF Mono', Monaco, Inconsolata, 'Roboto Mono', Consolas, 'Courier New', monospace;

  /* Font Sizes */
  --vitabex-text-xs: 0.75rem;
  --vitabex-text-sm: 0.875rem;
  --vitabex-text-base: 1rem;
  --vitabex-text-lg: 1.125rem;
  --vitabex-text-xl: 1.25rem;
  --vitabex-text-2xl: 1.5rem;
  --vitabex-text-3xl: 1.875rem;
  --vitabex-text-4xl: 2.25rem;
  --vitabex-text-5xl: 3rem;
  --vitabex-text-6xl: 3.75rem;

  /* Line Heights */
  --vitabex-leading-none: 1;
  --vitabex-leading-tight: 1.25;
  --vitabex-leading-snug: 1.375;
  --vitabex-leading-normal: 1.5;
  --vitabex-leading-relaxed: 1.625;
  --vitabex-leading-loose: 2;

  /* Border Radius */
  --vitabex-rounded-sm: 0.125rem;
  --vitabex-rounded: 0.25rem;
  --vitabex-rounded-md: 0.375rem;
  --vitabex-rounded-lg: 0.5rem;
  --vitabex-rounded-xl: 0.75rem;
  --vitabex-rounded-2xl: 1rem;
  --vitabex-rounded-3xl: 1.5rem;
  --vitabex-rounded-full: 9999px;

  /* Spacing Scale */
  --vitabex-space-1: 0.25rem;
  --vitabex-space-2: 0.5rem;
  --vitabex-space-3: 0.75rem;
  --vitabex-space-4: 1rem;
  --vitabex-space-5: 1.25rem;
  --vitabex-space-6: 1.5rem;
  --vitabex-space-8: 2rem;
  --vitabex-space-10: 2.5rem;
  --vitabex-space-12: 3rem;
  --vitabex-space-16: 4rem;
  --vitabex-space-20: 5rem;
  --vitabex-space-24: 6rem;

  /* Transitions */
  --vitabex-transition: all 0.3s ease;
  --vitabex-transition-fast: all 0.15s ease;
  --vitabex-transition-slow: all 0.5s ease;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: var(--vitabex-font-family);
  font-size: var(--vitabex-text-base);
  line-height: var(--vitabex-leading-normal);
  color: var(--vitabex-text-dark);
  background-color: var(--vitabex-white);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: var(--vitabex-leading-tight);
  color: var(--vitabex-text-dark);
  margin-top: 0;
  margin-bottom: 1rem;
}

h1 {
  font-size: var(--vitabex-text-4xl);
  font-weight: 700;
}

h2 {
  font-size: var(--vitabex-text-3xl);
  font-weight: 700;
}

h3 {
  font-size: var(--vitabex-text-2xl);
  font-weight: 600;
}

h4 {
  font-size: var(--vitabex-text-xl);
  font-weight: 600;
}

h5 {
  font-size: var(--vitabex-text-lg);
  font-weight: 600;
}

h6 {
  font-size: var(--vitabex-text-base);
  font-weight: 600;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: var(--vitabex-leading-relaxed);
}

a {
  color: var(--vitabex-primary);
  text-decoration: none;
  transition: var(--vitabex-transition);
}

a:hover {
  color: var(--vitabex-primary-dark);
  text-decoration: underline;
}

/* Mobile-First Button Styles */
.btn {
  font-weight: 500;
  border-radius: var(--vitabex-rounded-lg);
  padding: 0.75rem 1.5rem;
  transition: var(--vitabex-transition);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 44px;
  /* Touch-friendly minimum */
  font-size: 1rem;
  line-height: 1.5;
}

/* Mobile button enhancements */
@media (max-width: 575px) {
  .btn {
    padding: 1rem 1.5rem;
    min-height: 48px;
    font-size: 1.1rem;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .btn-group .btn {
    width: auto;
    margin-bottom: 0;
  }

  .btn-sm {
    padding: 0.75rem 1rem;
    min-height: 44px;
    font-size: 0.95rem;
  }

  .btn-lg {
    padding: 1.25rem 2rem;
    min-height: 56px;
    font-size: 1.2rem;
  }
}

/* Tablet button adjustments */
@media (min-width: 576px) and (max-width: 991px) {
  .btn {
    padding: 0.875rem 1.75rem;
    min-height: 46px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem var(--vitabex-primary-light);
  outline: none;
}

.btn-primary {
  background-color: var(--vitabex-primary);
  color: var(--vitabex-white);
}

.btn-primary:hover {
  background-color: var(--vitabex-primary-dark);
  color: var(--vitabex-white);
  transform: translateY(-1px);
  box-shadow: var(--vitabex-shadow-md);
}

.btn-secondary {
  background-color: var(--vitabex-secondary);
  color: var(--vitabex-white);
}

.btn-secondary:hover {
  background-color: var(--vitabex-secondary-dark);
  color: var(--vitabex-white);
  transform: translateY(-1px);
  box-shadow: var(--vitabex-shadow-md);
}

.btn-outline-primary {
  border: 2px solid var(--vitabex-primary);
  color: var(--vitabex-primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--vitabex-primary);
  color: var(--vitabex-white);
  transform: translateY(-1px);
  box-shadow: var(--vitabex-shadow-md);
}

/* Mobile-First Form Controls */
.form-control {
  border: 2px solid var(--vitabex-border);
  border-radius: var(--vitabex-rounded-lg);
  padding: 0.75rem 1rem;
  font-size: var(--vitabex-text-base);
  transition: var(--vitabex-transition);
  min-height: 44px;
  /* Touch-friendly minimum */
  line-height: 1.5;
}

.form-control:focus {
  border-color: var(--vitabex-primary);
  box-shadow: 0 0 0 0.2rem var(--vitabex-primary-light);
}

/* Mobile form enhancements */
@media (max-width: 575px) {
  .form-control {
    padding: 1rem 1.25rem;
    font-size: 16px;
    /* Prevents zoom on iOS */
    min-height: 48px;
    border-radius: var(--vitabex-rounded-md);
  }

  .form-select {
    padding: 1rem 1.25rem;
    font-size: 16px;
    min-height: 48px;
  }

  .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
  }

  .form-check-label {
    font-size: 1rem;
    line-height: 1.5;
    padding-left: 0.5rem;
  }

  .form-floating>.form-control {
    padding: 1.625rem 1.25rem 0.625rem;
  }

  .form-floating>label {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* Tablet form adjustments */
@media (min-width: 576px) and (max-width: 991px) {
  .form-control {
    padding: 0.875rem 1.125rem;
    min-height: 46px;
  }
}

/* Utility Classes */
.text-primary {
  color: var(--vitabex-primary) !important;
}

.text-secondary {
  color: var(--vitabex-secondary) !important;
}

.text-muted {
  color: var(--vitabex-text-muted) !important;
}

.text-dark {
  color: var(--vitabex-text-dark) !important;
}

.bg-primary {
  background-color: var(--vitabex-primary) !important;
}

.bg-secondary {
  background-color: var(--vitabex-secondary) !important;
}

.bg-light {
  background-color: var(--vitabex-light) !important;
}

.border-primary {
  border-color: var(--vitabex-primary) !important;
}

.border-light {
  border-color: var(--vitabex-border) !important;
}

.shadow-sm {
  box-shadow: var(--vitabex-shadow-sm) !important;
}

.shadow {
  box-shadow: var(--vitabex-shadow) !important;
}

.shadow-md {
  box-shadow: var(--vitabex-shadow-md) !important;
}

.shadow-lg {
  box-shadow: var(--vitabex-shadow-lg) !important;
}

/* Mobile-First Responsive Typography */
@media (max-width: 575px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: var(--vitabex-text-3xl);
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  h2 {
    font-size: var(--vitabex-text-2xl);
    line-height: 1.3;
    margin-bottom: 0.875rem;
  }

  h3 {
    font-size: var(--vitabex-text-xl);
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }

  h4 {
    font-size: var(--vitabex-text-lg);
    margin-bottom: 0.75rem;
  }

  p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  html {
    font-size: 15px;
  }

  h1 {
    font-size: var(--vitabex-text-4xl);
  }

  h2 {
    font-size: var(--vitabex-text-3xl);
  }
}

/* Layout */
.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container-custom {
    padding: 0 2rem;
  }
}

/* Section Spacing */
.section {
  padding: 4rem 0;
}

@media (max-width: 768px) {
  .section {
    padding: 2.5rem 0;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection Styles */
::selection {
  background-color: var(--vitabex-primary-light);
  color: var(--vitabex-primary-dark);
}

::-moz-selection {
  background-color: var(--vitabex-primary-light);
  color: var(--vitabex-primary-dark);
}

/* Layout
 Utilities */
.main-content {
  flex: 1;
}

/* Page-specific body classes */
body.home-page .main-content {
  padding-top: 0;
  /* Hero section will handle navbar overlap */
}

body:not(.home-page) .main-content {
  padding-top: 100px;
  /* Standard pages need padding for fixed navbar */
}

/* Navbar brand enhancements */
.navbar-brand i {
  color: var(--vitabex-primary);
}

/* Navigation button styling */
.navbar .btn-primary {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

/* Mobile navigation improvements */
@media (max-width: 991.98px) {
  .navbar-nav .nav-item.ms-2 {
    margin-left: 0 !important;
    margin-top: 1rem;
  }

  .navbar-nav .btn {
    width: 100%;
    text-align: center;
  }
}

/* Page Transitions */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--vitabex-primary), var(--vitabex-secondary));
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-transition-overlay.active {
  opacity: 1;
  visibility: visible;
}

.page-transition-overlay::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.page-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navigation UX Improvements */
.nav-link {
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--vitabex-primary) !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background-color: var(--vitabex-primary);
  border-radius: 1px;
}

/* Button Loading States */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  background-color: var(--vitabex-gray-50);
  border-bottom: 1px solid var(--vitabex-border);
}

.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: '>';
  color: var(--vitabex-text-muted);
}

.breadcrumb-item a {
  color: var(--vitabex-primary);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--vitabex-primary-dark);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--vitabex-text-muted);
}

/* Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--vitabex-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: var(--vitabex-shadow-lg);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background-color: var(--vitabex-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--vitabex-shadow-xl);
}

/* Keyboard Focus Indicators */
.keyboard-focus {
  outline: 2px solid var(--vitabex-primary) !important;
  outline-offset: 2px !important;
}

/* Mobile Navigation Improvements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: white;
    border-radius: var(--vitabex-rounded-lg);
    box-shadow: var(--vitabex-shadow-lg);
    margin-top: 1rem;
    padding: 1rem;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-radius: var(--vitabex-rounded);
    margin-bottom: 0.25rem;
  }

  .navbar-nav .nav-link:hover {
    background-color: var(--vitabex-primary-light);
  }

  .back-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* Smooth Transitions for All Interactive Elements */
a,
button,
.btn,
.nav-link,
.form-control,
.card {
  transition: all 0.3s ease;
}

/* Enhanced Focus States */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible {
  outline: 2px solid var(--vitabex-primary);
  outline-offset: 2px;
}

/* Page-specific Animations */
.hero-section {
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Section Reveal Animations */
.section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.section.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile-Specific Enhancements */
@media (max-width: 575px) {

  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }

  /* Mobile container adjustments */
  .container,
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Mobile section spacing */
  .section {
    padding: 3rem 0;
  }

  /* Mobile card improvements */
  .card {
    border-radius: var(--vitabex-rounded-lg);
    box-shadow: var(--vitabex-shadow);
    margin-bottom: 1.5rem;
  }

  .card-body {
    padding: 1.5rem;
  }

  /* Mobile modal improvements */
  .modal-dialog {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }

  .modal-content {
    border-radius: var(--vitabex-rounded-lg);
  }

  /* Mobile table responsiveness */
  .table-responsive {
    border: none;
    margin-bottom: 1rem;
  }

  .table {
    font-size: 0.9rem;
  }

  /* Mobile alert improvements */
  .alert {
    border-radius: var(--vitabex-rounded-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
  }

  /* Mobile breadcrumb */
  .breadcrumb {
    font-size: 0.9rem;
    padding: 0.75rem 0;
  }

  /* Mobile pagination */
  .pagination {
    justify-content: center;
  }

  .page-link {
    padding: 0.75rem 1rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Tablet-specific enhancements */
@media (min-width: 576px) and (max-width: 991px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .card-body {
    padding: 2rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

  /* Remove hover effects on touch devices */
  .btn:hover {
    transform: none;
    box-shadow: none;
  }

  .card:hover {
    transform: none;
    box-shadow: var(--vitabex-shadow);
  }

  /* Enhance tap targets */
  .nav-link,
  .btn,
  .form-control,
  .dropdown-item {
    min-height: 44px;
  }

  /* Improve touch scrolling */
  .overflow-auto {
    -webkit-overflow-scrolling: touch;
  }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

  /* Crisp borders on high DPI displays */
  .border,
  .card,
  .form-control,
  .btn {
    border-width: 0.5px;
  }
}

/* Landscape mobile optimizations */
@media (max-width: 991px) and (orientation: landscape) {
  .navbar-vitabex {
    padding: 0.5rem 0;
  }

  .section {
    padding: 2rem 0;
  }

  .hero-section {
    min-height: 70vh;
  }
}

/* Accessibility improvements for mobile */
@media (max-width: 575px) {

  /* Larger focus indicators */
  *:focus-visible {
    outline: 3px solid var(--vitabex-primary);
    outline-offset: 2px;
  }

  /* Better contrast for small text */
  small,
  .small {
    font-size: 0.9rem;
    color: var(--vitabex-text-dark);
  }

  /* Skip link for mobile */
  .skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--vitabex-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
  }

  .skip-link:focus {
    top: 6px;
  }
}

/*
 Import Component Styles */
@import url('components/hero.css');
@import url('components/services.css');
@import url('components/about.css');
@import url('components/contact.css');
@import url('components/terms.css');

/* Products Section Styles */
.products-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.products-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.products-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.products-header {
  text-align: center;
  margin-bottom: 4rem;
}

.products-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--vitabex-text-dark);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.products-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--vitabex-primary), var(--vitabex-secondary));
  border-radius: 2px;
}

.products-subtitle {
  font-size: 1.25rem;
  color: var(--vitabex-text-muted);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.product-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
  z-index: 1;
}

.product-card:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.product-image-container {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  z-index: 2;
  position: relative;
  display: block;
  background-color: #f3f4f6;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, var(--vitabex-primary), var(--vitabex-secondary));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-content {
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-category {
  color: var(--vitabex-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.product-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-description {
  color: var(--vitabex-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.product-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--vitabex-primary-light);
  color: var(--vitabex-primary-dark);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.product-feature i {
  font-size: 0.75rem;
}

.product-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--vitabex-border-light);
}

.product-tablet-count {
  color: var(--vitabex-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.product-cta {
  background: linear-gradient(135deg, var(--vitabex-primary), var(--vitabex-secondary));
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-cta:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.product-cta i {
  font-size: 0.75rem;
}

/* Product Responsive Design */
@media (max-width: 1200px) {
  .products-container {
    padding: 0 1.5rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .products-section {
    padding: 3rem 0;
  }
  
  .products-container {
    padding: 0 1rem;
  }
  
  .products-header {
    margin-bottom: 3rem;
  }
  
  .products-title {
    font-size: 2.5rem;
  }
  
  .products-subtitle {
    font-size: 1.125rem;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .product-card {
    border-radius: 20px;
  }
  
  .product-image-container {
    height: 280px;
  }
  
  .product-content {
    padding: 1.5rem;
  }
  
  .product-name {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .products-title {
    font-size: 2rem;
  }
  
  .products-subtitle {
    font-size: 1rem;
  }
  
  .product-image-container {
    height: 220px;
  }
  
  .product-content {
    padding: 1rem;
  }
}

/* Product Animation on scroll */
.product-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation */
.product-card:nth-child(1) { transition-delay: 0.1s; }
.product-card:nth-child(2) { transition-delay: 0.2s; }
.product-card:nth-child(3) { transition-delay: 0.3s; }
.product-card:nth-child(4) { transition-delay: 0.4s; }
.product-card:nth-child(5) { transition-delay: 0.5s; }
.product-card:nth-child(6) { transition-delay: 0.6s; }

/* Loading state for images */
.product-image-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

/* Product image placeholder */
.product-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.placeholder-content {
  text-align: center;
  padding: 2rem;
}

/* Touch feedback */
.product-card.touch-active {
  transform: none !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.2s ease;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Accessibility improvements */
.product-cta:focus {
  outline: 2px solid var(--vitabex-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-image,
  .product-cta {
    transition: none;
  }
  
  .product-card:hover {
    transform: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  }
  
  .product-card:hover .product-image {
    transform: none;
  }
}

/* Print styles */
@media print {
  .products-section {
    background: white;
    padding: 2rem 0;
  }
  
  .product-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .product-cta {
    display: none;
  }
}