:root {
  --ebb: #ffffff;
  --cannon-pink: #914876;
  --everglade: #224e2d;
  --olive-green: #99b24c;
  --text-dark: #1e293b;
  --gradient-secondary: linear-gradient(135deg, #224e2d 0%, #2d6640 50%, #224e2d 100%);
  --gradient-accent: linear-gradient(135deg, #99b24c 0%, #a8c25a 50%, #99b24c 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Navbar */
.custom-navbar {
  background: black;
  backdrop-filter: blur(20px);
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.custom-navbar.scrolled {
  background: black;
  backdrop-filter: blur(30px);
}

.logo {
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-link {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--gradient-accent);
  transition: left 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
  left: 0;
}

.dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  color: var(--text-dark);
  transition: all 0.3s ease;
  font-weight: 500;
  border-radius: 8px;
  margin: 4px 8px;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, #914876 0%, #b45a8a 50%, #914876 100%);
  color: white;
  transform: translateX(8px);
}

/* Hero Section */
.products-hero {
  height: 60vh;
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  filter: brightness(0.6) contrast(1.2);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(145, 72, 118, 0.4) 0%, rgba(34, 78, 45, 0.4) 100%);
  z-index: 2;
}

.hero-content {
  z-index: 3;
  color: white;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: #f8fafc;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-weight: 400;
}

.category-badge {
  display: inline-block;
  margin-top: 1rem;
}

.badge-text {
  background: var(--gradient-accent);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 8px 16px rgba(153, 178, 76, 0.3);
}

/* Sections */
.section-gradient-1 {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
}

.section-gradient-2 {
  background: linear-gradient(135deg, #fafbff 0%, #f0f4ff 50%, #e6f2ff 100%);
}

/* Search Section */
.search-section {
  border-bottom: 1px solid rgba(145, 72, 118, 0.1);
}

.search-box {
  position: relative;
}

.search-box input {
  padding: 18px 50px 18px 20px;
  border: 2px solid rgba(145, 72, 118, 0.1);
  border-radius: 50px;
  background: white;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  width: 100%;
}

.search-box input:focus {
  outline: none;
  border-color: var(--cannon-pink);
  box-shadow: 0 0 0 3px rgba(145, 72, 118, 0.1);
  transform: translateY(-2px);
}

.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cannon-pink);
  font-size: 1.2rem;
  pointer-events: none;
}

/* Products List */
.products-list {
  min-height: 60vh;
}

.products-table-container {
  background: white;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid rgba(145, 72, 118, 0.1);
}

.product-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 2fr 0.8fr 1.2fr;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(145, 72, 118, 0.08);
  transition: all 0.3s ease;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-row:hover {
  background: linear-gradient(135deg, rgba(145, 72, 118, 0.02) 0%, rgba(153, 178, 76, 0.02) 100%);
  transform: translateX(8px);
  box-shadow: inset 5px 0 0 var(--cannon-pink);
}

.product-row.header {
  background: linear-gradient(135deg, var(--cannon-pink) 0%, #b45a8a 100%);
  color: white;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 10;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  opacity: 1;
  transform: none;
  animation: none;
}

.product-row.header:hover {
  transform: none;
  box-shadow: none;
}

.product-cell {
  padding: 0.5rem;
  word-wrap: break-word;
}

.brand-name {
  font-weight: 700;
  color: var(--cannon-pink);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.main-brand {
  display: inline-block;
  background: linear-gradient(135deg, var(--everglade) 0%, #2d6640 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(34, 78, 45, 0.2);
}

.composition {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.dosage-form {
  display: inline-block;
  background: rgba(153, 178, 76, 0.15);
  color: var(--olive-green);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.therapy {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
}

.therapy-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(145, 72, 118, 0.1) 0%, rgba(153, 178, 76, 0.1) 100%);
  padding: 5px 12px;
  border-radius: 12px;
  margin: 3px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--everglade);
}

/* No Results */
.no-results {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-dark);
  opacity: 0.7;
}

.no-results i {
  font-size: 5rem;
  color: var(--cannon-pink);
  opacity: 0.5;
  margin-bottom: 2rem;
}

.no-results h3 {
  font-weight: 700;
  color: var(--everglade);
  margin-bottom: 1rem;
}

.no-results p {
  color: var(--text-dark);
  opacity: 0.8;
}

/* Footer */
.footer-section {
  background: black;
  position: relative;
  overflow: hidden;
}

.footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-accent);
}

.footer-logo {
  max-width: 120px;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: var(--gradient-accent);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 16px rgba(153, 178, 76, 0.3);
}

.map-container {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* 3D Canvas */
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .product-row {
    grid-template-columns: 0.8fr 1fr 2fr 0.8fr 1.2fr;
    gap: 0.8rem;
    padding: 1.2rem;
  }
}

@media (max-width: 992px) {
  .product-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.5rem;
  }
  
  .product-cell {
    padding: 0.3rem 0;
  }
  
  .product-row.header {
    display: none;
  }
  
  .product-cell::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--cannon-pink);
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .navbar-collapse {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
  }
}

@media (max-width: 768px) {
  .products-hero {
    height: 50vh;
    min-height: 350px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .badge-text {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .search-box input {
    padding: 15px 45px 15px 18px;
    font-size: 0.95rem;
  }
  
  .product-row {
    padding: 1.2rem;
  }
  
  .brand-name {
    font-size: 1rem;
  }
  
  .main-brand {
    font-size: 0.8rem;
    padding: 5px 12px;
  }
  
  .composition {
    font-size: 0.9rem;
  }
  
  .dosage-form {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  
  .therapy {
    font-size: 0.85rem;
  }
  
  .therapy-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
  
  .footer-section {
    padding: 2rem 0;
  }
  
  .footer-logo {
    max-width: 80px;
  }
}

@media (max-width: 576px) {
  .products-hero {
    height: 45vh;
    min-height: 300px;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-title i {
    display: block;
    margin-bottom: 0.5rem;
  }
  
  .search-section {
    padding: 1rem 0;
  }
  
  .product-row {
    padding: 1rem;
  }
  
  .products-table-container {
    border-radius: 16px;
  }
  
  .no-results i {
    font-size: 3rem;
  }
  
  .no-results h3 {
    font-size: 1.25rem;
  }
}