/* KOVEXIA Healthcare - Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Primary = Teal (for actions, CTAs, highlights, buttons) */
  --primary: #00A3E0;
  /* Teal - main action color */
  --primary-hover: #0087bd;
  /* Darker teal for hover */
  --primary-light: #E0F7FF;
  /* Very light teal for backgrounds */

  /* Secondary = Navy (for headings, section titles, navigation text) */
  --secondary: #003366;
  /* Deep Navy */
  --secondary-hover: #1a4d7a;
  /* Lighter navy for hover */
  --secondary-light: #4a6fa5;
  /* Light navy */

  /* Accent colors */
  --accent: #F7F9FB;
  /* Soft Grey */
  --accent-teal: #00D4AA;
  /* Brighter teal accent */
  --accent-yellow: #F59E0B;
  /* Yellow accent */

  /* Backgrounds */
  --bg-white: #FFFFFF;
  --bg-light: #F7F9FB;
  --bg-dark: #0A192F;

  /* Text */
  --text-main: #0A192F;
  --text-muted: #475569;
  /* Darker for better contrast from #64748B */
  --text-white: #FFFFFF;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Transitions */
  --transition: all 0.3s ease;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.15;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: 100%;
    padding: 0 1rem;
  }
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1rem;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
  box-shadow: 0 4px 12px rgba(0, 163, 224, 0.2);
  /* Subtle, professional shadow */
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 163, 224, 0.25);
}

.btn-brochure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 163, 224, 0.05);
  border: 1px solid rgba(0, 163, 224, 0.3);
  color: var(--primary);
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-brochure:hover {
  background: rgba(0, 163, 224, 0.1);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-primary:active,
.btn-brochure:active {
  transform: translateY(0);
}

/* Ensure buttons are always visible and clickable */
.btn {
  position: relative;
  z-index: 10;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--text-white);
  color: var(--text-white);
}

.btn-outline:hover {
  background-color: var(--text-white);
  color: var(--primary);
}

/* Premium Back Button */
/* Premium Back Button - Desktop Default (Outline) */
.btn-back-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 2rem;
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.btn-back-nav:hover {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 163, 224, 0.2);
}

.btn-back-nav i {
  transition: transform 0.2s ease;
}

.btn-back-nav:hover i {
  transform: translateX(-4px);
}

.text-center {
  text-align: center;
}

.section {
  padding: var(--spacing-lg) 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.bg-dark {
  background-color: var(--bg-dark);
  color: var(--text-white);
}

/* Disclaimer/Note Box - Global Styles (Desktop + Mobile) */
/* Disclaimer/Note Box - Global Styles (Desktop + Mobile) */
.disclaimer-box {
  max-width: none;
  width: 100%;
  margin: 1.25rem 0 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
  border: 1px solid #bae6fd;
  border-left: 4px solid #00A3E0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 163, 224, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #374151;
}

.disclaimer-box::before {
  content: '\f05a';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #00A3E0;
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.disclaimer-box strong {
  color: #003366;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

/* --- Product Actions Group (Brochure + Quote + Note) --- */
.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  /* Increased gap for desktop side-by-side */
  margin-top: 2.5rem;
  /* Significant gap from features list */
  width: 100%;
}

.product-actions .btn {
  flex: 0 1 auto;
  /* Buttons take necessary width on desktop */
  min-width: 200px;
  /* Ensure decent clickable area */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
  /* Consistent height */
  font-size: 1rem;
  border-radius: 8px;
  margin: 0;
  /* Remove default margins */
}

/* Brochure Button Style */
.btn-brochure {
  background-color: white;
  color: var(--secondary);
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.btn-brochure:hover {
  background-color: #f8fafc;
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.btn-brochure i {
  color: #ef4444;
  /* Red PDF icon */
}

/* Ensure Primary Quote Button matches height/style */
.product-actions .btn-primary {
  /* Inherits globally but ensure alignment */
  box-shadow: 0 4px 12px rgba(0, 163, 224, 0.2);
}

/* Product Detail Page - Desktop Layout */
.detail-container {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.breadcrumb {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--text-main);
  font-weight: 600;
}

/* Responsive Action Layout */
@media (max-width: 768px) {
  .product-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .product-actions .btn {
    width: 100%;
    flex: auto;
  }

  .disclaimer-box {
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .container.detail-container {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .detail-container {
    padding: 0 !important;
    background: #f8fafc;
  }

  .breadcrumb {
    margin-bottom: 1rem !important;
    font-size: 0.8rem !important;
    line-height: 1.4;
    padding: 1rem 1rem 0 1rem;
    overflow-wrap: anywhere;
    word-break: break-word;
    color: #64748b;
  }

  .breadcrumb a {
    color: #64748b;
  }

  .breadcrumb span {
    color: #0f172a;
    font-weight: 600;
  }

  .detail-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    align-items: start;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  /* Mobile Card Container */
  .detail-grid>div:first-child {
    background: white !important;
    margin: 0 1rem 1rem 1rem !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
  }

  .detail-grid>div:last-child {
    background: white !important;
    margin: 0 1rem 1rem 1rem !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    padding: 1.5rem !important;
  }

  /* Product Image on Mobile */
  .product-image-lg {
    width: 100% !important;
    margin: 0 !important;
    height: 200px !important;
    background: #f1f5f9 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  .product-image-lg i {
    font-size: 3rem !important;
    color: #cbd5e1 !important;
  }

  .product-image-lg img {
    max-width: 80% !important;
    max-height: 160px !important;
    object-fit: contain !important;
  }

  /* Category Badge - Keep desktop colors on mobile */
  .detail-badge,
  .badge-new,
  .badge-disposable,
  .badge-refurb {
    display: inline-block !important;
    padding: 0.4rem 0.8rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    border-radius: 6px !important;
    margin-bottom: 1rem !important;
    letter-spacing: normal !important;
  }

  /* Keep original desktop colors for product detail pages */
  .badge-new {
    background: #f0f9ff !important;
    color: #0284c7 !important;
    border: 1px solid #bae6fd !important;
  }

  .badge-disposable {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
  }

  .badge-refurb {
    background: #e6fffa !important;
    color: #2c7a7b !important;
    border: 1px solid #a7f3d0 !important;
  }

  /* Product Title */
  .detail-info h1 {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    font-family: 'Outfit', sans-serif !important;
  }

  /* Product Description */
  .detail-info p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
    color: #64748b !important;
  }

  /* Key Features Section */
  .features-box {
    background: #f8fafc !important;
    padding: 1.25rem !important;
    margin: 1.5rem 0 !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
  }

  .features-box h3 {
    margin-bottom: 1rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    font-family: 'Outfit', sans-serif !important;
  }

  .features-list {
    padding: 0 !important;
    margin: 0 !important;
  }

  .features-list li {
    margin-bottom: 0.75rem !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: #374151 !important;
  }

  .features-list li:last-child {
    margin-bottom: 0 !important;
  }

  .features-list i {
    color: #00A3E0 !important;
    font-size: 0.9rem !important;
    margin-top: 3px !important;
    flex-shrink: 0 !important;
  }

  .product-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin: 2rem 0 !important;
    /* Professional gap from features list */
    width: 100% !important;
  }

  .product-actions .btn {
    width: 100% !important;
    height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
  }

  /* Download Brochure Button */
  .btn-brochure {
    background: white !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    margin-top: 0 !important;
    /* Reset, gap handled by container */
  }

  .btn-brochure i {
    color: #ef4444 !important;
  }

  .btn-brochure:hover {
    background: #f9fafb !important;
    border-color: #9ca3af !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  }

  /* Request Quote Button */
  .product-actions .btn-primary {
    background: #00A3E0 !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 163, 224, 0.2) !important;
  }

  .product-actions .btn-primary:hover {
    background: #0087bd !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 163, 224, 0.3) !important;
  }

  /* Note Section */
  .disclaimer-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #00A3E0 !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    margin-top: 1rem !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    color: #374151 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .disclaimer-box::before {
    content: '\f05a' !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    color: #00A3E0 !important;
    font-size: 1rem !important;
    flex-shrink: 0 !important;
    margin-top: 1px !important;
  }

  .disclaimer-box strong {
    color: #0f172a !important;
    font-weight: 600 !important;
    display: block !important;
    margin-bottom: 2px !important;
    font-size: 0.9rem !important;
  }

  .disclaimer-box div {
    flex: 1 !important;
  }

  .specs-table {
    width: 100% !important;
    table-layout: fixed;
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    margin: 1rem 0 !important;
  }

  .specs-table td:first-child,
  .specs-table th:first-child {
    width: 42%;
    font-weight: 600;
    color: var(--text-muted);
  }

  .specs-table th,
  .specs-table td {
    padding: 0.75rem !important;
    font-size: 0.875rem;
    line-height: 1.4;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .specs-table tr:last-child td {
    border-bottom: none !important;
  }

  .cert-section {
    padding: 1rem !important;
    margin: 0.75rem 1rem 0 !important;
    border-radius: 12px !important;
    background: #fff !important;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(2, 6, 23, 0.06);
  }

  .cert-section h3 {
    margin-bottom: 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.3;
  }

  .cert-badges {
    gap: 0.5rem !important;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cert-badge {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.75rem !important;
    border-radius: 6px !important;
  }

  .detail-container h2 {
    font-size: 1.125rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .detail-container>div[style*="margin-top"] {
    margin: 0.75rem 1rem 0 !important;
    padding: 1rem !important;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(2, 6, 23, 0.06);
  }

  .action-btns {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin: 1.5rem 0 4rem !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .action-btns .btn {
    width: 100% !important;
    height: 2.75rem;
    padding: 0 1rem !important;
    font-size: 0.875rem !important;
    border-radius: 8px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
  }

  .action-btns .btn+.btn {
    margin-left: 0 !important;
  }

  .detail-container .btn-outline {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    background-color: transparent !important;
  }



  .detail-container .disclaimer-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%) !important;
    border: 1px solid #bae6fd !important;
    border-left: 4px solid #00A3E0 !important;
    border-radius: 12px !important;
    padding: 1rem 1.25rem !important;
    margin: 1.5rem 0 0 !important;
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
    color: #374151 !important;
    flex-direction: row !important;
    display: flex !important;
    gap: 12px !important;
    align-items: flex-start !important;
    max-width: none !important;
    box-shadow: 0 2px 8px rgba(0, 163, 224, 0.08) !important;
  }

  .detail-container .disclaimer-box::before {
    content: '\f05a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #00A3E0;
    font-size: 1.125rem;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .detail-container .disclaimer-box strong {
    color: #003366 !important;
    font-weight: 700 !important;
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem !important;
  }

  @media (max-width: 768px) {
    .detail-container .disclaimer-box {
      padding: 12px !important;
      font-size: 13px !important;
      border-radius: 8px !important;
    }
  }

  @media (max-width: 768px) {

    /* Restore Pill Style for Mobile Only */
    .btn-back-nav {
      width: 100%;
      justify-content: center;
      background-color: #f8fafc;
      color: #64748b;
      border: 1px solid #e2e8f0;
      border-radius: 50px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    }

    .btn-back-nav:hover {
      background-color: #fff;
      border-color: var(--primary);
      color: var(--primary);
    }
  }

  @media (max-width: 768px) and (prefers-reduced-motion: reduce) {

    .product-accordion-content,
    .product-accordion-chevron {
      transition: none !important;
    }
  }
}