/* ============================================
   CUSTOM MEDICAL SPECIALTIES - PROFESSIONAL CSS
   Medical Device Distributor Design System
   ============================================ */

:root {
  /* Brand Colors - Single Blue Standard */
  --primary: #0066CC;
  --primary-dark: #0052A3;
  --primary-light: #3399FF;
  --secondary: #00a86b;
  --accent: #ff6b35;
  
  /* Grayscale */
  --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;
  
  /* Status Colors */
  --blue-50: #eff6ff;
  --blue-500: #3b82f6;
  --green-50: #f0fdf4;
  --green-500: #22c55e;
  --red-50: #fef2f2;
  --red-500: #ef4444;
  --yellow-50: #fffbeb;
  --yellow-500: #f59e0b;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Transitions */
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--gray-900);
  background: white;
}

img { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }

/* Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

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

.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section { padding: 5rem 0; }
}

/* ============================================
   PROFESSIONAL NAVIGATION - MOBILE-FIRST
   ============================================ */

.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 1rem;
  padding: 0.75rem 0;
}

/* Logo */
.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.logo-section:hover {
  transform: scale(1.02);
}

.logo-img {
  height: 40px;
  width: auto;
}

.logo-text h1 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.logo-text p {
  font-size: 0.7rem;
  color: var(--gray-600);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: var(--gray-100);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  gap: 5px;
  transition: all var(--transition);
}

.mobile-menu-btn:hover {
  background: var(--gray-200);
}

.mobile-menu-btn span {
  width: 20px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: flex-end;
  }
  
  .nav-center {
    flex: 1;
    max-width: 500px;
  }
  
  .nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  border-top: 1px solid var(--gray-200);
  overflow-y: auto;
  animation: slideDown 0.3s ease;
  z-index: 1001;
}

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

.mobile-menu.active {
  display: block;
}

.mobile-menu-content {
  padding: 1.5rem;
}

.mobile-search {
  margin-bottom: 1.5rem;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-link {
  padding: 1rem;
  border-radius: 8px;
  color: var(--gray-700);
}


/* Modern Search Bar */
.search-form {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box {
  width: 220px;
  padding: 0.65rem 1rem;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--gray-50);
  font-size: 0.9rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--gray-900);
}

.search-box:focus {
  outline: none;
  width: 380px;
  background: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(59,130,246,0.15);
}

.search-box::placeholder {
  color: var(--gray-500);
  font-weight: 500;
}

.search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-50%) scale(1.05);
}

/* Nav Links Modern Styling */
.nav-link {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(59,130,246,0.08);
  transform: translateY(-1px);
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(59,130,246,0.25);
}

.cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59,130,246,0.35);
}

  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  display: block;
}

.mobile-menu-link:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.mobile-cart-btn {
  margin-top: 1rem;
  width: 100%;
}

/* Search Box */
.search-form {
  position: relative;
  width: 100%;
}

.search-box {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 16px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.95rem;
  background: var(--gray-50);
  transition: all var(--transition);
}

.search-box:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgb(0 82 204 / 0.1);
}

.search-btn {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 40px;
  height: 40px;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.search-btn:hover {
  background: var(--primary-dark);
}

/* Cart Button */
.cart-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  justify-content: center;
}

.cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* Tablet & Desktop Navigation */
@media (min-width: 768px) {
  .header-nav {
    min-height: 80px;
  }
  
  .logo-img {
    height: 48px;
  }
  
  .logo-text h1 {
    font-size: 1.25rem;
  }
  
  .logo-text p {
    font-size: 0.75rem;
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .nav-desktop {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 1.5rem;
    margin-left: 2rem;
  }
  
  .nav-center {
    flex: 1;
    max-width: 500px;
  }
  
  .nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .nav-link {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
  }
  
  .nav-link:hover {
    color: var(--primary);
    background: var(--blue-50);
  }
}

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

.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark) 70%, #001a66);
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .hero {
    min-height: 600px;
  }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: float 20s ease-in-out infinite;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  padding: 2rem 0;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

.btn-primary {
  background: white;
  color: var(--primary);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  background: var(--gray-50);
  color: var(--primary-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  color: white;
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   SECTIONS
   ============================================ */

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 4rem;
  }
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

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

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

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

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

.feature-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.3s;
}

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

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

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

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

.feature-desc {
  color: var(--gray-600);
  line-height: 1.6;
}

/* ============================================
   PRODUCTS
   ============================================ */

.products-section {
  background: var(--gray-50);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid var(--gray-200);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

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

.product-image {
  height: 240px;
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

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

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--secondary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

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

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

.product-desc {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--gray-600);
  font-weight: 500;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.footer {
  background: var(--gray-900);
  color: white;
  padding: 3rem 0 2rem;
}

@media (min-width: 768px) {
  .footer {
    padding: 4rem 0 2rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
  }
}

.footer-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-section p {
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
  font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: 1rem;
  background: white;
  transition: all var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(0 82 204 / 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.alert-success {
  background: var(--green-50);
  color: var(--green-500);
  border: 1px solid var(--green-500);
}

.alert-error {
  background: var(--red-50);
  color: var(--red-500);
  border: 1px solid var(--red-500);
}

.alert-info {
  background: var(--blue-50);
  color: var(--blue-500);
  border: 1px solid var(--blue-500);
}

/* ============================================
   PAGE HEADERS
   ============================================ */

.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .page-header {
    padding: 4rem 0;
  }
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 0v40M0 20h40'/%3E%3C/g%3E%3C/svg%3E");
}

.page-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  position: relative;
}

.page-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

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

.breadcrumb {
  padding: 1rem 0;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumb-list {
  color: var(--gray-600);
  font-size: 0.9rem;
}

.breadcrumb-list a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb-list a:hover {
  color: var(--primary-dark);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }

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

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ============================================
   RESPONSIVE HELPERS
   ============================================ */

@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}


/* Refined Modern Navbar */
.header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.search-box {
  background: #f8f9fa;
  border: 1.5px solid transparent;
  transition: all 0.25s ease;
}

.search-box:focus {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(59,130,246,0.12);
}

.nav-link {
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.cart-btn {
  box-shadow: 0 2px 6px rgba(59,130,246,0.2);
  transition: all 0.2s ease;
}

.cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(59,130,246,0.3);
}


.search-btn {
  background: var(--primary);
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.search-btn:hover {
  background: var(--primary-dark);
}

.search-btn svg {
  fill: none;
  stroke: white;
}

/* Product card image backgrounds */
.product-image {
    background: #ffffff;
}

.product-image img {
    background: #ffffff;
    padding: 10px;
}

/* Catalog page product card images - white backgrounds */
.catalog-product-image,
a[href*="catalog:"] img {
    background: #ffffff !important;
    padding: 20px !important;
}

/* Ensure all product images have consistent white bg */
img[alt*="Tubing"],
img[alt*="Drain"],
img[alt*="Procedure"],
img[alt*="Kit"] {
    background: #ffffff !important;
    padding: 15px;
}

/* Dark mode support for product cards */
@media (prefers-color-scheme: dark) {
    .product-card {
        background: white;
        border: 1px solid #d1d5db;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    }

    .product-card:hover {
        border-color: #3b82f6;
    }

    .product-title {
        color: #111827;
    }

    .product-desc {
        color: #374151;
    }

    .product-content {
        background: white;
    }
}
