/* Fast Tech Enterprise - Core Components */

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

/* Design System Variables */
:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --transition-normal: 250ms ease;
}

/* Global Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
}

/* Enhanced Navigation */
.navbar {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1030;
  position: relative;
  transition: all var(--transition-normal);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: white !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand i {
  font-size: 1.8rem;
  color: var(--accent);
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--gray-300) !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-lg);
  transition: all 150ms ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: white !important;
  background: rgba(59, 130, 246, 0.1);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 150ms ease;
}

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

/* Navbar Search and Cart Alignment */
.navbar-search-cart {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.search-container-wrapper {
  display: flex;
  align-items: center;
  min-width: 280px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  transition: all 150ms ease;
  position: relative;
  z-index: 100;
}

.search-icon {
  background: transparent !important;
  border: none !important;
  color: var(--gray-400) !important;
  padding: 0.5rem 0.75rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-input {
  background: transparent !important;
  border: none !important;
  color: white !important;
  padding: 0.5rem 0.5rem 0.5rem 0 !important;
  min-width: 180px;
}

.search-input::placeholder {
  color: var(--gray-400) !important;
}

.search-input:focus {
  box-shadow: none !important;
  outline: none !important;
}

.search-container-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Enhanced Cart Button */
.cart-button-navbar {
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-lg) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.cart-button-navbar:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-1px);
}

/* Legacy search-container for backward compatibility */
.search-container input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  transition: all 150ms ease;
}

.search-container input::placeholder {
  color: var(--gray-400);
}

.search-container input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

.search-container button {
  background: var(--accent);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  transition: all 150ms ease;
}

.search-container button:hover {
  background: var(--accent-dark);
}

/* Enhanced Cart Button */
#cartBtn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  transition: all 150ms ease;
}

#cartBtn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Enterprise Hero Section */
.hero-section {
  background: #000;
  position: relative;
  overflow: hidden;
  min-height: 40vh;
  display: flex;
  align-items: center;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 0;
  opacity: 0.4;
  display: block;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
  animation: heroGradient 20s ease-in-out infinite;
  z-index: 1;
  display: none;
}

@keyframes heroGradient {
  0%, 100% { 
    transform: rotate(0deg) scale(1); 
    opacity: 0.8;
  }
  25%, 75% { 
    transform: rotate(1deg) scale(1.02); 
    opacity: 0.9;
  }
  50% { 
    transform: rotate(-1deg) scale(1.03); 
    opacity: 1;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 4s ease-in-out infinite alternate;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes titleGlow {
  0%, 100% { 
    filter: brightness(1); 
    text-shadow: 0 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  50% { 
    filter: brightness(1.1); 
    text-shadow: 0 0 4px 8px rgba(59, 130, 246, 0.3);
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #e9ecef;
  margin-bottom: 3rem;
  font-weight: 400;
  max-width: 600px;
  line-height: 1.6;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 1.2s ease-out 0.5s both;
}

.btn-hero {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: all 0.3s ease;
  z-index: 1;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-hero-primary::before:hover {
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.btn-hero-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.btn-hero-secondary::before:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-visual {
  display: none;
}

.hero-visual i {
  font-size: clamp(8rem, 15vw, 12rem);
  color: rgba(255, 255, 255, 0.15);
  animation: float 8s ease-in-out infinite;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
  }
  50% { 
    transform: translateY(-20px) rotate(5deg); 
  }
}

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

/* World-Class Animations */

/* Smooth Scroll Reveal Animation */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-180deg) scale(0.5);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translateY(0);
  }
  40%, 43% {
    transform: translateY(-10px);
  }
  70% {
    transform: translateY(-5px);
  }
  90% {
    transform: translateY(-2px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.8), 0 0 30px rgba(59, 130, 246, 0.6);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes wave {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-10px);
  }
  75% {
    transform: translateY(5px);
  }
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
}

.animate-slide-up {
  transform: translateY(50px);
}

.animate-slide-up.animated {
  transform: translateY(0);
}

.animate-slide-left {
  transform: translateX(-50px);
}

.animate-slide-left.animated {
  transform: translateX(0);
}

.animate-slide-right {
  transform: translateX(50px);
}

.animate-slide-right.animated {
  transform: translateX(0);
}

.animate-scale {
  transform: scale(0.8);
}

.animate-scale.animated {
  transform: scale(1);
}

.animate-rotate {
  transform: rotate(-180deg) scale(0.5);
}

.animate-rotate.animated {
  transform: rotate(0deg) scale(1);
}

/* Tech Vibes Text Styling - Clean and Beautiful */
.cool-vibes-text {
    color: #e0f2fe;
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.6;
    letter-spacing: 0.5px;
    text-shadow: none;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    animation: none;
}

.cool-vibes-text::before {
    display: none;
}

@keyframes techVibesGradient {
    0% {
        background-position: 0% 50%;
        filter: brightness(1) hue-rotate(0deg);
    }
    33% {
        background-position: 100% 50%;
        filter: brightness(1.2) hue-rotate(10deg);
    }
    66% {
        background-position: 100% 100%;
        filter: brightness(0.9) hue-rotate(-10deg);
    }
    100% {
        background-position: 0% 50%;
        filter: brightness(1) hue-rotate(0deg);
    }
}

@keyframes techVibesGlow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Enhanced Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInUp 1s ease-out;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  animation: slideInUp 1s ease-out 0.2s both;
}

/* Enhanced Category Cards */
.category-card {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  position: relative;
  animation: slideInUp 0.8s ease-out both;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.category-card:hover::before {
  transform: translateX(100%);
}

.category-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

.category-icon {
  font-size: 3rem;
  color: #3b82f6;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

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

/* Enhanced Product Cards */
.product-card {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  position: relative;
  animation: slideInUp 0.8s ease-out both;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 1rem;
}

/* Hide dropdown arrow on navbar */
.navbar-nav .dropdown-toggle::after {
  display: none;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.product-card:hover::before {
  transform: translateX(100%);
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border-color: #3b82f6;
}

.product-image img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Enhanced Buttons */
.btn-hero {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-hero:hover::after {
  width: 300px;
  height: 300px;
}

/* Enhanced Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d3748 100%);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  animation: wave 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

/* Staggered Animations */
.stagger-animation > * {
  opacity: 0;
  animation: slideInUp 0.8s ease-out both;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }
.stagger-animation > *:nth-child(7) { animation-delay: 0.7s; }
.stagger-animation > *:nth-child(8) { animation-delay: 0.8s; }

/* Loading Animation */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  border-top-color: #3b82f6;
  animation: spin 1s ease-in-out infinite;
}

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

/* Enterprise Product Cards */
.product-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Search Results Styling */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 1050;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 5px;
  min-width: 100%;
}

.search-result-item {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
}

.search-result-item:hover {
  background: var(--gray-50);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin-right: 1rem;
  border-radius: var(--radius-lg);
}

.search-result-item h6 {
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: var(--gray-800);
}

.search-result-item small {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent);
}

.product-image {
  position: relative;
  height: 250px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

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

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.badge-new {
  background: var(--success);
  color: white;
}

.badge-sale {
  background: var(--danger);
  color: white;
}

.badge-hot {
  background: var(--warning);
  color: white;
}

.product-quick-actions {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
}

.product-card:hover .product-quick-actions {
  opacity: 1;
  transform: translateY(0);
}

.quick-action-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 150ms ease;
  backdrop-filter: blur(10px);
}

.quick-action-btn:hover {
  background: white;
  transform: scale(1.1);
}

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

.product-category {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-description {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

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

.star {
  color: var(--warning);
  font-size: 0.875rem;
}

.star.empty {
  color: var(--gray-300);
}

.rating-count {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

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

.price-original {
  font-size: 1rem;
  color: var(--gray-400);
  text-decoration: line-through;
}

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

.btn-product {
  flex: 1;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 150ms ease;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.btn-view {
  background: var(--gray-100);
  color: var(--gray-700);
}

.btn-view:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.btn-cart {
  background: var(--accent);
  color: white;
}

.btn-cart:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* Enhanced Category Cards */
.category-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--success), var(--warning));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.category-card.is-active::before {
  transform: scaleX(1);
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card.is-active {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent);
}

.category-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent);
  transition: all var(--transition-normal);
}

.category-card:hover .category-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.category-card.is-active .category-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.category-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.category-description {
  color: var(--gray-600);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.category-btn {
  background: var(--gray-100);
  color: var(--gray-700);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-weight: 500;
  transition: all 150ms ease;
}

.category-card:hover .category-btn {
  background: var(--accent);
  color: white;
}

.category-card.is-active .category-btn {
  background: var(--accent);
  color: white;
}

/* Section Headers */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1rem;
  position: relative;
  text-align: center;
}

/* Products Filters Sidebar */
.filter-sidebar {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 1.25rem;
  backdrop-filter: blur(10px);
}

.filter-sidebar h5 {
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.filter-sidebar .btn-outline-secondary {
  border-color: var(--gray-300);
  color: var(--gray-700);
  border-radius: var(--radius-lg);
  font-weight: 600;
  padding: 0.35rem 0.65rem;
}

.filter-sidebar .btn-outline-secondary:hover {
  background: var(--gray-900);
  border-color: var(--gray-900);
  color: white;
}

.filter-section {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.filter-section h6 {
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.filter-option {
  margin-bottom: 0.5rem;
}

.filter-option label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-lg);
  color: var(--gray-700);
  transition: background 150ms ease, color 150ms ease;
  cursor: pointer;
  user-select: none;
}

.filter-option label:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.filter-option input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
}

.price-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
}

.price-range span {
  color: var(--gray-500);
  font-weight: 700;
}

.price-range input[type="number"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  background: white;
  color: var(--gray-900);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.price-range input[type="number"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.filters-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 1040;
}

@media (max-width: 991.98px) {
  body.filters-open {
    overflow: hidden;
  }

  body.filters-open .filters-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(380px, 92vw);
    max-width: 92vw;
    transform: translateX(-105%);
    transition: transform 260ms ease;
    z-index: 1050;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.filters-open .filter-sidebar {
    transform: translateX(0);
  }
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: 0.375rem;
}

/* Category Section Styling */
.category-section {
  padding: 3rem 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.category-grid > div {
  width: 100%;
}

/* Technology on Fire Subtitle */
.subtitle-fire {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 25%, #fdb833 50%, #f7931e 75%, #ff6b35 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: fireFlow 3s ease infinite;
  filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.4)) drop-shadow(0 0 4px rgba(253, 184, 51, 0.3));
  position: relative;
  display: inline-block;
}

@keyframes fireFlow {
  0% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.4)) drop-shadow(0 0 4px rgba(253, 184, 51, 0.3));
  }
  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 12px rgba(255, 107, 53, 0.6)) drop-shadow(0 0 8px rgba(253, 184, 51, 0.5));
  }
  100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.4)) drop-shadow(0 0 4px rgba(253, 184, 51, 0.3));
  }
}

/* Responsive subtitle-fire */
@media (max-width: 768px) {
  .subtitle-fire {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .subtitle-fire {
    font-size: 0.95rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .product-card {
    margin-bottom: 1rem;
  }
  
  .category-card {
    margin-bottom: 1rem;
  }
  
  /* Fix overlapping navbar */
  .navbar {
    padding: 0.5rem 0 !important;
  }
  
  .navbar-nav {
    padding-top: 1rem;
    gap: 0.5rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.95rem;
  }
  
  /* Product card fixes */
  .product-card {
    margin-bottom: 1.5rem;
  }
  
  .product-image {
    height: 180px;
  }
  
  .product-body {
    padding: 1rem;
  }
  
  .product-title {
    font-size: 1rem;
    line-height: 1.3;
  }
  
  .product-description {
    font-size: 0.85rem;
    max-height: 2.5em;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .product-price {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  
  .price-current {
    font-size: 1.25rem;
  }
  
  .price-original {
    font-size: 0.9rem;
  }
  
  /* Button fixes */
  .btn-product {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }
  
  /* Section spacing */
  .section-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 1.5rem;
  }
  
  /* Category grid */
  .category-grid {
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .category-grid > div {
    margin-bottom: 0;
  }
  
  .category-card {
    padding: 1.5rem 1rem;
    min-height: 200px;
  }
  
  .category-icon {
    font-size: 2.5rem;
  }
  
  .category-title {
    font-size: 1rem;
  }
  
  /* Hero section */
  .hero-content {
    padding-bottom: 2rem;
  }
  
  .hero-visual {
    display: none;
  }
  
  /* Products grid responsive */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
}

/* Tablet specific fixes */
@media (max-width: 992px) and (min-width: 769px) {
  .navbar-nav {
    gap: 0.25rem;
  }
  
  .product-card {
    margin-bottom: 1.5rem;
  }
  
  .product-image {
    height: 200px;
  }
  
  .product-title {
    font-size: 1rem;
  }
  
  /* Category grid - 2 columns on tablet */
  .category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .category-card {
    padding: 1.5rem;
  }
}

/* Large screens */
@media (min-width: 1200px) {
  /* Products grid - 4 columns on desktop */
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  
  /* Category grid - 4 columns on desktop */
  .category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .navbar-brand i {
    font-size: 1.4rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.4rem 0.5rem !important;
    font-size: 0.85rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .btn-hero {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .product-image {
    height: 150px;
  }
  
  .product-title {
    font-size: 0.9rem;
  }
  
  .product-description {
    font-size: 0.8rem;
  }
  
  .price-current {
    font-size: 1.1rem;
  }
  
  .category-icon {
    font-size: 2rem;
  }
  
  /* Products grid - single column on mobile */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Category grid - single column on mobile */
  .category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Newsletter Section Styles */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 60px 0;
  margin-bottom: 0;
  position: relative;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

.newsletter-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.newsletter-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.newsletter-input {
  height: 50px;
  border: none;
  border-radius: var(--radius-lg);
  padding: 0 20px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--gray-800);
}

.newsletter-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
  background: white;
}

.newsletter-input::placeholder {
  color: var(--gray-500);
}

.btn-newsletter {
  height: 50px;
  padding: 0 30px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-newsletter:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-newsletter:active {
  transform: translateY(0);
}

/* Add space before footer */
footer {
  margin-top: 0;
}
