/* ====================================
   LAB RESULTS / COA GALLERY STYLES
==================================== */
:root {
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --border: #334155;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --success: #10b981;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  padding-bottom: 60px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  padding: 16px 0;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

.brand i { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-main);
}

.cart-btn {
  background: var(--primary);
  color: white !important;
  padding: 8px 16px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Main Container & Hero */
.results-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
}

.hero-banner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.hero-banner h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-banner p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Filter Bar */
.filter-bar {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.search-input-box {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.search-input-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

.search-input-box input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 12px 14px 12px 42px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input-box input:focus {
  border-color: var(--primary);
}

/* Grid Layout */
.coa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.coa-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.coa-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.coa-img-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  background: #ffffff;
  cursor: pointer;
  overflow: hidden;
}

.coa-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.coa-card:hover .coa-img-wrapper img {
  transform: scale(1.03);
}

.zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  font-weight: 600;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s;
}

.coa-img-wrapper:hover .zoom-overlay {
  opacity: 1;
}

.coa-info {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.coa-info h3 {
  font-size: 16px;
  font-weight: 600;
}

.coa-info span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Lightbox Modal */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: white;
  cursor: pointer;
  z-index: 2001;
}

.lightbox-content {
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-caption {
  margin-top: 14px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 16px;
}

.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
}

.spin {
  animation: spin 1s linear infinite;
}

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