/* ============================================
   BioLife Shops - Complete Site Styles
   Inspired by biolifeshops.com Wix design
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2d3436;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* --- Color Palette --- */
:root {
  --green-50: #f0f7f0;
  --green-100: #dcefe0;
  --green-200: #b5d9be;
  --green-300: #7fbd91;
  --green-400: #4a9f64;
  --green-500: #2d8a4e;
  --green-600: #1e6e3a;
  --green-700: #155730;
  --green-800: #0f4022;
  --green-900: #082e18;

  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --text-light: #b2bec3;
  --bg-light: #f8faf8;
  --bg-warm: #f5f8f3;
  --white: #ffffff;
  --border: #e8ede8;
  --shadow: 0 2px 20px rgba(45, 52, 54, 0.06);
  --shadow-lg: 0 8px 40px rgba(45, 52, 54, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: 2.8rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }
a { color: var(--green-500); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green-700); }
strong { font-weight: 600; }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-light); }
.section-warm { background: var(--bg-warm); }
.section-dark { background: var(--green-800); color: #e8ede8; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section:last-of-type { border-bottom: none; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
}
.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-600);
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo img { height: 36px; width: auto; }
.site-logo:hover { color: var(--green-500); }

/* --- Navigation --- */
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a, .main-nav .nav-btn {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  text-decoration: none;
}
.main-nav a:hover, .main-nav .nav-btn:hover {
  background: var(--green-50);
  color: var(--green-600);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  z-index: 100;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-primary);
  border-radius: 0;
}
.dropdown-menu a:hover { background: var(--green-50); color: var(--green-600); }

.nav-cta {
  background: var(--green-500);
  color: white !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--green-600) !important; }

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f7f0 0%, #e8f0e8 50%, #dcefe0 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}
.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  color: var(--green-800);
}
.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-primary {
  background: var(--green-500);
  color: white;
}
.btn-primary:hover { background: var(--green-600); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(45, 132, 78, 0.3); }
.btn-secondary {
  background: transparent;
  color: var(--green-600);
  border: 2px solid var(--green-300);
}
.btn-secondary:hover { background: var(--green-50); border-color: var(--green-500); }
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--bg-light); }

/* --- Section Titles --- */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}
.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.section-title .subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

/* --- Content Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.card-body { padding: 24px; }
.card-body h3 { margin-bottom: 12px; font-size: 1.2rem; }
.card-body p { color: var(--text-secondary); font-size: 0.95rem; }

/* --- Feature Cards --- */
.feature-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  object-fit: contain;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.feature-card p { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 0; }

/* --- Content Sections (Homepage layout) --- */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.content-block.reverse { direction: rtl; }
.content-block.reverse > * { direction: ltr; }
.content-block-img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  max-height: 500px;
}
.content-block-text h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--green-700);
}
.content-block-text .label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-400);
  font-weight: 600;
  margin-bottom: 4px;
}
.content-block-text ul {
  list-style: none;
  margin: 16px 0;
}
.content-block-text ul li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
}
.content-block-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-400);
  font-weight: 700;
}

/* --- Product Grid --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid var(--border);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--bg-light);
  padding: 20px;
}
.product-card-body { padding: 16px 20px 20px; }
.product-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}
.product-card-body .price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-500);
}
.product-card-body .price-old {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 8px;
}
.product-card-body .sku {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

/* --- Product Detail Page --- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 60px 0;
}
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-gallery-main {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--bg-light);
  border: 1px solid var(--border);
}
.product-gallery-thumbs {
  display: flex;
  gap: 12px;
}
.product-gallery-thumbs img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-light);
}
.product-gallery-thumbs img:hover, .product-gallery-thumbs img.active {
  border-color: var(--green-400);
}
.product-info h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}
.product-info .sku {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
}
.product-info .price-row {
  margin: 20px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.product-info .price-current { font-size: 1.8rem; font-weight: 700; color: var(--green-500); }
.product-info .price-regular { font-size: 1.1rem; color: var(--text-light); text-decoration: line-through; margin-left: 12px; }
.product-info .description { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8; margin: 20px 0; }
.product-info .qty-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.product-info .qty-selector input {
  width: 60px;
  text-align: center;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
}
.product-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* --- Footer --- */
.site-footer {
  background: var(--green-800);
  color: #c8dcc8;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col p, .footer-col a {
  color: #b0c8b0;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #8aa88a;
}

/* Subscribe form */
.subscribe-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 180px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 0.9rem;
}
.subscribe-form input[type="email"]::placeholder { color: #8aa88a; }
.subscribe-form button {
  padding: 12px 24px;
  background: var(--green-400);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.subscribe-form button:hover { background: var(--green-300); }

/* --- Category Page --- */
.category-header {
  background: var(--bg-light);
  padding: 40px 0;
  text-align: center;
}
.category-header h1 { margin-bottom: 8px; }
.category-header .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
}
.category-header .breadcrumb a { color: var(--text-secondary); }
.category-header .description {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* --- Legal / Text Pages --- */
.legal-page { max-width: 800px; margin: 0 auto; padding: 60px 24px; }
.legal-page h1 { margin-bottom: 32px; }
.legal-page h2 { font-size: 1.4rem; margin: 32px 0 16px; }
.legal-page h3 { font-size: 1.1rem; margin: 24px 0 12px; }
.legal-page p { margin-bottom: 16px; color: var(--text-secondary); }
.legal-page ul { margin: 16px 0; padding-left: 24px; }
.legal-page ul li { margin-bottom: 8px; color: var(--text-secondary); }

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding: 60px 0;
}
.contact-info h2 { margin-bottom: 24px; }
.contact-info .detail { margin-bottom: 20px; }
.contact-info .detail strong { display: block; margin-bottom: 4px; color: var(--green-700); }
.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--green-400);
}
.contact-form textarea { min-height: 120px; resize: vertical; }

/* --- Decorative Section Dividers --- */
.section-divider {
  text-align: center;
  padding: 10px 0;
}
.section-divider img {
  max-width: 100%;
  height: auto;
  max-height: 80px;
  opacity: 0.6;
}

/* --- Feature List (Why Choose) --- */
.feature-list {
  display: grid;
  gap: 16px;
}
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow);
}
.feature-item .check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.85rem;
}
.feature-item h4 { font-size: 1rem; margin-bottom: 4px; }
.feature-item p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0; }

/* --- Tags & Labels --- */
.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 50px;
  background: var(--green-50);
  color: var(--green-600);
}
.tag-green { background: var(--green-100); color: var(--green-700); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .grid-2, .content-block, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.2rem; }
  h1 { font-size: 2rem; }
  .section { padding: 50px 0; }
  .main-nav { gap: 4px; }
  .main-nav a { padding: 8px 10px; font-size: 0.85rem; }
  .nav-cta { padding: 8px 16px !important; font-size: 0.85rem !important; }
  .product-detail { padding: 40px 0; }
  .content-block.reverse { direction: ltr; }
}
@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .section-title h2 { font-size: 1.6rem; }
  .header-inner { padding: 0 16px; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-green { color: var(--green-500); }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 40px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 40px; }
.gap-2 { gap: 20px; }