/* Global Styles & Variables */
:root {
  --primary-blue: #0056b3;
  /* Medical Blue */
  --secondary-blue: #e6f0fa;
  --accent-orange: #ff6600;
  /* Use sparingly for CTAs */
  --text-dark: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --border-color: #e0e0e0;
  --max-width: 1200px;
  --header-height: 120px;
  /* From user request */
  --top-bar-height: 40px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-40 {
  margin-bottom: 40px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-blue);
  color: var(--white);
  border-radius: 4px;
  font-weight: 600;
  border: 2px solid var(--primary-blue);
  cursor: pointer;
}

.btn:hover {
  background-color: transparent;
  color: var(--primary-blue);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-blue);
}

.btn-outline:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

/* --- Header & Top Bar --- */
.top-bar {
  background-color: var(--primary-blue);
  color: var(--white);
  height: var(--top-bar-height);
  font-size: 0.9rem;
  display: flex;
  /* Flex to center vertically */
  align-items: center;
  /* Vertical center */
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.top-contact {
  display: flex;
  gap: 20px;
}

.top-contact a {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-socials {
  display: flex;
  gap: 15px;
}

.top-socials a:hover {
  opacity: 0.8;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo img {
  height: 100px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Navigation */
.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: #444;
  padding: 10px 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
}

/* Dropdown Handling */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  border-radius: 0 0 4px 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 12px 20px;
  color: var(--text-dark);
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: var(--secondary-blue);
  color: var(--primary-blue);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-blue);
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  height: 600px;
  /* Reduced from Abonemed massive slider for cleaner look */
  background: linear-gradient(rgba(0, 50, 100, 0.7), rgba(0, 50, 100, 0.7)),
    url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover;
  display: flex;
  align-items: center;
  color: var(--white);
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--white);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* --- Features / Why Choose Us --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-blue);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

/* --- Product Categories --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.category-card {
  position: relative;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: var(--white);
}

.category-card:hover img {
  transform: scale(1.05);
}

/* --- Products (Grid Styles) --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.product-body {
  padding: 25px;
}

.product-category {
  font-size: 0.85rem;
  color: var(--accent-orange);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}

/* --- Footer --- */
footer {
  background-color: #0f172a;
  /* Deep dark blue */
  color: var(--white);
  padding: 80px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.footer-info li {
  margin-bottom: 15px;
  display: flex;
  gap: 15px;
  color: #adb5bd;
}

.footer-info i {
  color: var(--primary-blue);
  margin-top: 5px;
}

.footer-links a {
  display: block;
  margin-bottom: 12px;
  color: #adb5bd;
}

.footer-links a:hover {
  color: var(--primary-blue);
  padding-left: 5px;
}

.footer-bottom {
  padding: 25px 0;
  text-align: center;
  color: #adb5bd;
  font-size: 0.9rem;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 100px;
    /* Smaller header on mobile */
  }

  .top-bar {
    display: none;
    /* Hide top bar on mobile */
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--white);
    flex-direction: column;
    align-items: center;
    /* Center items */
    padding-top: 50px;
    transition: var(--transition);
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    text-align: center;
    background: #f9f9f9;
    width: 100%;
    display: none;
    /* JS will toggle */
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}