/* ==========================================================================
   Pacific Northwest Bio Labs - E-Commerce Platform
   Theme: Pacific Northwest Nature & Precision Science (Pine Green, Glacier Blue, Steel Silver, Slate Navy & White)
   ========================================================================== */

:root {
  /* Color Palette - Pacific Northwest Bio Labs Logo Palette */
  --bg-dark: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-glass: rgba(255, 255, 255, 0.95);
  
  --color-navy: #0F172A;
  --color-slate: #1E293B;
  --color-emerald: #059669;
  --color-emerald-light: #10B981;
  --color-cyan: #0284C7;
  --color-aqua: #0EA5E9;
  --color-steel: #475569;
  --color-silver: #64748B;
  
  --text-main: #1E293B;
  --text-muted: #475569;
  --text-dim: #64748B;
  --text-bright: #0F172A;

  --border-glass: #E2E8F0;
  --border-cyan: rgba(2, 132, 199, 0.3);
  --border-emerald: rgba(5, 150, 105, 0.3);

  --shadow-glow-cyan: 0 0 25px rgba(2, 132, 199, 0.15);
  --shadow-glow-emerald: 0 0 25px rgba(5, 150, 105, 0.15);
  --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.08);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(2, 132, 199, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(13, 148, 136, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  color: var(--text-main);
}

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

/* Mandatory Compliance Top Banner */
.compliance-banner-top {
  background: linear-gradient(90deg, #0F172A 0%, #0369A1 50%, #0F172A 100%);
  border-bottom: 1px solid var(--border-cyan);
  padding: 0.65rem 1rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.15);
}

.compliance-banner-top .compliance-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #FFFFFF;
  text-transform: uppercase;
}

.compliance-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.25);
  color: #10B981;
  border: 1px solid #10B981;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
}

/* Header & Navigation */
.navbar {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 41px; /* Below top banner */
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--color-navy);
}

.brand-logo .logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-emerald));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.brand-logo span.highlight {
  background: linear-gradient(135deg, var(--color-cyan), var(--color-emerald-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-cyan);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-emerald-light));
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-emerald) 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(2, 132, 199, 0.45);
}

.btn-outline {
  background: #FFFFFF;
  border: 1.5px solid var(--color-cyan);
  color: var(--color-cyan);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.btn-outline:hover {
  background: var(--color-cyan);
  color: #FFFFFF;
}

.cart-icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.cart-icon-btn:hover {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
}

.cart-count-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--color-emerald-light);
  color: #FFF;
  font-weight: 800;
  font-size: 0.75rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--color-navy);
}

/* FLASHING ANIMATED BANNER FOR PEPTIDE RESEARCH: SHOT VS PILL */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8), 0 0 15px rgba(2, 132, 199, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 25px 8px rgba(239, 68, 68, 0.9), 0 0 35px rgba(236, 72, 153, 0.8);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8), 0 0 15px rgba(2, 132, 199, 0.4);
    transform: scale(1);
  }
}

.flashing-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #0F172A 0%, #0284C7 50%, #EC4899 100%);
  color: #FFFFFF !important;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  border: 2px solid #FFFFFF;
  text-decoration: none;
  animation: pulse-glow 1.8s infinite ease-in-out;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.03em;
}

.flashing-banner-btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 0 35px rgba(236, 72, 153, 1);
}

/* Hero Section */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-bottom: 1px solid var(--border-glass);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid var(--border-emerald);
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  color: var(--color-emerald);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--color-navy);
}

.hero-title span.gradient-text {
  background: linear-gradient(135deg, var(--color-cyan), var(--color-emerald-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
}

.stat-item .stat-value {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--color-cyan);
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--border-glass);
  background: #FFFFFF;
}

.hero-image-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.hero-image-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.purity-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-emerald);
  font-weight: 800;
}

/* Category Cards Section */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-tag {
  color: var(--color-cyan);
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.section-description {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.category-card {
  background: #FFFFFF;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  text-align: left;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-cyan);
  box-shadow: 0 15px 35px -5px rgba(2, 132, 199, 0.15);
}

.category-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(2, 132, 199, 0.08);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.category-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--color-navy);
}

.category-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Product Catalog Grid */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: #FFFFFF;
  border: 1px solid var(--border-glass);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-tab {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #F1F5F9;
  transition: var(--transition);
}

.filter-tab.active, .filter-tab:hover {
  background: var(--color-cyan);
  color: #FFF;
}

.search-box {
  position: relative;
  min-width: 260px;
}

.search-box input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  background: #F8FAFC;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-main);
}

.search-box input:focus {
  outline: none;
  border-color: var(--color-cyan);
  background: #FFF;
}

.search-box i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

/* Product Card */
.product-card {
  background: #FFFFFF;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-cyan);
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.12);
}

.product-badge-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tag-category {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-cyan);
  background: rgba(2, 132, 199, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.tag-purity {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-emerald);
  background: rgba(13, 148, 136, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-emerald);
}

.product-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
}

.product-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  padding: 0.64rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  border: 1px solid #E2E8F0;
}

.spec-label {
  color: var(--text-dim);
  font-weight: 600;
}

.spec-value {
  color: var(--color-cyan);
  font-weight: 800;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-glass);
}

.price-display {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-navy);
}

.price-display span.currency {
  color: var(--color-emerald);
}

/* Dosing / Reconstitution Calculator Component */
.calculator-box {
  background: #FFFFFF;
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

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

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #F8FAFC;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text-main);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-cyan);
  background: #FFFFFF;
}

.calc-result-card {
  background: rgba(2, 132, 199, 0.05);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.calc-result-val {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-cyan);
  margin: 0.5rem 0;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  padding: 1.5rem;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: #FFFFFF;
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-backdrop.active .modal-window {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: var(--text-dim);
  font-size: 1.5rem;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--color-cyan);
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: #FFFFFF;
  border-left: 1px solid var(--border-glass);
  box-shadow: -10px 0 40px rgba(15, 23, 42, 0.15);
  z-index: 2500;
  transition: right 0.35s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
}

.cart-body {
  padding: 1.5rem;
  flex-grow: 1;
  overflow-y: auto;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-glass);
  background: #F8FAFC;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-glass);
}

/* Footer */
.footer {
  background: #0F172A;
  color: #F8FAFC;
  padding: 4rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid #1E293B;
}

.footer-compliance-box {
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(2, 132, 199, 0.3);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 3rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #38BDF8;
}

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

.footer-grid h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #38BDF8;
}

.footer-copyright {
  border-top: 1px solid #1E293B;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #64748B;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid, .partner-card-featured, .calc-grid, .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 121px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 121px);
    background: #FFFFFF;
    flex-direction: column;
    padding: 2rem;
    transition: left 0.3s ease;
    align-items: flex-start;
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-toggle {
    display: block;
  }
}
