/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: Arial, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
}
.nav-logo {
  max-height: 100px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  color: #222;
  font-weight: bold;
}
.nav-links a:hover {
  color: #0056b3;
}

/* Hero */
.hero {
  text-align: center;
  padding: 5rem 1rem;
  background: #f9fbff;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero p {
  margin-bottom: 2rem;
  color: #555;
}
.btn-primary {
  background: #0056b3;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
}
.btn-primary:hover {
  background: #004494;
}

/* Trust Section */
.trust {
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 3rem;
  padding: 3rem 1rem;
  max-width: 1000px;
  margin: auto;
}
.trust-item img {
  max-width: 50px;
  margin-bottom: 1rem;
}
.trust-item h3 {
  margin-bottom: 0.5rem;
}

/* Featured Products */
.featured {
  text-align: center;
  padding: 3rem 1rem;
}
.featured h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.research-banner {
  display: inline-block;
  background: #fff;
  color: #0056b3;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 0.4rem 0.8rem;
  margin: 1rem auto;
  border: 2px solid #0056b3;
  border-radius: 6px;
  text-align: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: block;          /* ✅ ensures it behaves like a block */
  width: fit-content;      /* ✅ only as wide as the text */
  margin-left: auto;       /* ✅ centers */
  margin-right: auto;      /* ✅ centers */
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 2rem auto;
}
.product img {
  max-width: 120px;
  margin: auto;
}
.product .name {
  font-weight: bold;
  margin-top: 0.5rem;
}
.product .dose {
  color: #555;
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: #f5f5f5;
  padding: 2rem 1rem;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  max-width: 1000px;
  margin: auto;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-left p, .footer-right ul {
  margin-bottom: 0.5rem;
}
.footer-right ul {
  list-style: none;
}
.footer-right a {
  color: #222;
  text-decoration: none;
}
.footer-right a:hover {
  color: #0056b3;
}
.footer .disclaimer {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #777;
}
/* --- Tweaks --- */

/* Bigger Logo */
.nav-logo {
  max-height: 70px;   /* increase size */
}

/* Trust Section Improvements */
.trust {
  background: #f9fbff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 2rem 1rem;  /* less empty space */
  gap: 4rem;           /* more space between icons */
}

.trust-item img {
  max-width: 80px;     /* make icons bigger */
  margin-bottom: 1rem;
}
/* --- Layout Tweaks --- */

/* Bigger Logo */
.nav-logo {
  height: 70px;   /* increase logo height */
  width: auto;    /* maintain proportions */
}

/* Trust Section Cleanup */
.trust {
  background: #fff;   /* pure white (no grey block) */
  border-top: none;
  border-bottom: none;
  padding: 2.5rem 1rem; /* slightly reduced */
}

.trust-item img {
  max-width: 80px;     /* make icons bigger */
  margin-bottom: 1rem;
}

/* Hero spacing */
.hero {
  padding: 4rem 1rem 2rem 1rem; /* reduce bottom padding */
}

/* Featured products spacing */
.featured {
  padding: 2rem 1rem; /* pull section closer */
}
/* Trust icons uniform size */
.trust-item img {
  max-height: 60px;   /* consistent height */
  width: auto;
  display: block;
  margin: 0 auto 1rem auto;
}
.nav-logo {
  height: 80px;
  width: auto;
}
.trust-item img {
  margin-bottom: 0.5rem; /* tighter spacing below icons */
  max-height: 70px;      /* keep all icons uniform size */
}
.nav-logo {
  height: 150px; 
  width: auto;
}
.nav-logo {
  height: 80px;    /* adjust between 70–100px */
  width: auto;     /* scale naturally */
  display: block;  /* remove inline squish */
}
.nav-logo {
  width: 250px;   /* adjust as needed */
  height: auto;
}
/* Shop Grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Product Card */
.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.product-img {
  max-width: 140px;
  margin-bottom: 1rem;
}

.product-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.dose {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 1rem;
  font-weight: bold;
  margin: 0.5rem 0 1rem;
  color: #222;
}
/* Quantity Selector */
.quantity-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.qty-btn {
  background: #f0f0f0;
  border: none;
  padding: 0.5rem 0.9rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.qty-btn:hover {
  background: #ddd;
}

.qty-input {
  width: 50px;
  text-align: center;
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}
/* Badge */
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  background: #0056b3;
  color: white;
  margin-bottom: 0.5rem;
}

/* Button */
.product-card .btn-primary {
  width: 100%;
  padding: 0.8rem;
  font-size: 0.95rem;
  border-radius: 8px;
}
/* Cart Table */
.cart {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.cart h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.cart-table th,
.cart-table td {
  border-bottom: 1px solid #eee;
  padding: 1rem;
  text-align: center;
}

.cart-summary {
  text-align: right;
  font-size: 1.1rem;
}
/* Shop Section Titles */
.shop-section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 3rem 0 1rem;
  color: #222;
  position: relative;
}

.shop-section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #0056b3;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}
/* Cart Container */
.cart {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.cart h1 {
  text-align: center;
  margin-bottom: 2rem;
}

/* Cart Table */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
}

.cart-table th {
  background: #f5f7fa;
  font-weight: bold;
  text-align: center;
  padding: 1rem;
}

.cart-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.cart-table tr:last-child td {
  border-bottom: none;
}

/* Quantity Inputs */
.cart-qty {
  width: 60px;
  padding: 0.4rem;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Cart Summary */
.cart-summary {
  text-align: right;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.cart-summary strong {
  font-size: 1.2rem;
}

#checkout-button {
  display: block;
  margin-left: auto;
  background: #0056b3;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#checkout-button:hover {
  background: #004494;
}

.cart-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: #777;
  margin-top: 1rem;
}
/* Cart product cell */
.cart-product {
  text-align: left;
}

.cart-product .dose {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
}

/* Quantity controls in cart */
.quantity-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  background: #f0f0f0;
  border: none;
  padding: 0.4rem 0.8rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.qty-btn:hover {
  background: #ddd;
}

.cart-qty {
  width: 50px;
  text-align: center;
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Remove button */
.remove-btn {
  background: none;
  border: none;
  color: #d9534f;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.remove-btn:hover {
  color: #b52b27;
}
.vial {
  position: relative;
  display: inline-block;
}

.vial img {
  display: block;
  max-width: 120px; /* adjust size */
  margin: auto;
}
/* Vial label overlay */
.vial-wrap {
  position: relative;
  display: inline-block;
}

/* match your existing image sizing */
.vial-wrap .product-img {
  display: block;
  max-width: 160px;   /* adjust to your current size */
  margin: 0 auto;
}

/* Text that sits inside the blue rectangle */
.vial-name {
  --label-y: 62%;            /* vertical position as a % of the image height; tweak if needed */
  position: absolute;
  left: 50%;
  top: var(--label-y);
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;           /* adjust to fit your label width */
  letter-spacing: 0.3px;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25); /* helps legibility */
}

/* Dose options */
.dose-options {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.6rem 0 0.4rem;
  flex-wrap: wrap;
}

.dose-btn {
  background: #fff;
  border: 1px solid #cfd6e4;
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.dose-btn.active {
  background: #0056b3;
  color: #fff;
  border-color: #0056b3;
}

/* Price line */
.price {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0.35rem 0 0.6rem;
}
.supplies-note {
  background: #f4f8ff;      /* soft blue background */
  color: #222;
  font-size: 0.85rem;
  font-weight: normal;
  padding: 0.75rem;
  margin: 0.5rem auto 1.5rem auto;
  max-width: 700px;
  border: 1px solid #d3e2ff;
  border-radius: 6px;
}

.supplies-note a {
  color: #0056b3;
  font-weight: bold;
  text-decoration: none;
}

.supplies-note a:hover {
  text-decoration: underline;
}
html {
  scroll-behavior: smooth;
}
.purity-note {
  background: #e6f4ea;
  color: #1a472a;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 0.5rem;
  margin: 0.5rem auto 1.5rem;
  max-width: 600px;
  border-radius: 4px;
  border: 1px solid #b6e0c1;
}
/* Toast notification */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #111;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
/* Cart Page Styling */
.cart-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.cart-table th, .cart-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.cart-table th {
  background: #f9f9f9;
  font-weight: 600;
}

.cart-table img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Quantity Controls */
.qty-btn {
  background: #f0f0f0;
  border: none;
  padding: 0.4rem 0.7rem;
  margin: 0 0.3rem;
  cursor: pointer;
  border-radius: 6px;
  font-weight: bold;
}
.qty-btn:hover {
  background: #ddd;
}

/* Remove Button */
.remove-btn {
  background: none;
  border: none;
  color: red;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Cart Summary */
.cart-summary {
  text-align: right;
  padding: 1rem 0;
}

.cart-summary p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

#checkout-button {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  background: #0a63e0;
  color: white;
  border: none;
  cursor: pointer;
}
#checkout-button:hover {
  background: #084bb0;
}
/* Cart Page */
.cart-page {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.cart-title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 600;
  position: relative;
}
.cart-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #0a63e0;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.cart-table th, .cart-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #eaeaea;
}
.cart-table th {
  background: #f9f9f9;
  font-weight: 600;
}

.cart-table img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: block;
  margin: 0 auto;
  transition: transform 0.2s;
}
.cart-table img:hover {
  transform: scale(1.05);
}

/* Quantity buttons */
.qty-control {
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn {
  background: #f0f0f0;
  border: none;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.qty-btn:hover {
  background: #e0e0e0;
}
.qty-input {
  width: 40px;
  text-align: center;
  margin: 0 0.3rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Remove button */
.remove-item {
  color: #ff4d4f;
  cursor: pointer;
  font-size: 1.2rem;
  transition: color 0.2s;
}
.remove-item:hover {
  color: #d9363e;
}

/* Cart summary */
.cart-summary {
  text-align: right;
  font-size: 1.1rem;
}
#checkout-button {
  background: #0a63e0;
  color: white;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 1rem;
  transition: background 0.2s;
}
#checkout-button:hover {
  background: #084db3;
}

.continue-shopping {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #0a63e0;
  text-decoration: none;
}
.continue-shopping:hover {
  text-decoration: underline;
}
/* Title */
.cart-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  position: relative;
}
.cart-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #0a63e0;
  margin: 0.6rem auto 0;
  border-radius: 2px;
}

/* Product images in cart */
.cart-table img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  display: block;
  margin: 0 auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}
.cart-table img:hover {
  transform: scale(1.03);
}

/* Title styling */
.cart-table .product-name {
  font-weight: 600;
  font-size: 1rem;
  color: #222;
  text-decoration: none;   /* remove link styling */
  cursor: default;         /* make it not *look* clickable */
}

/* Same for images */
.cart-table .product-link {
  text-decoration: none;
  cursor: default;
}
/* Don't look like links, but remain clickable */
.unstyled-link { text-decoration: none; color: inherit; display: inline-flex; align-items: center; gap: 12px; }

/* Better cart images (match shop look) */
.cart-img {
  width: 54px; height: 54px; object-fit: contain;
  border-radius: 12px; /* pill-ish corners like shop cards */
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  padding: 6px;
}

/* Product cell layout */
.cart-product-cell { display: flex; align-items: center; gap: 12px; }
.cart-product-title { font-weight: 600; }

/* Compact qty controls */
.cart-qty .qty-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid #e5e7eb;
  background: #fff; cursor: pointer; font-weight: 600;
}
.cart-qty .qty-val { display: inline-block; min-width: 18px; text-align: center; margin: 0 8px; }

.cart-remove .remove-btn {
  background: transparent; border: none; color: #d33; cursor: pointer; font-size: 18px;
}

.empty-cell { text-align: center; padding: 32px 0; color: #6b7280; }
.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f0f0f0;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.qty-btn:hover {
  background: #e0e0e0;
  transform: scale(1.05);
}

.qty-display {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
}
.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f0f0f0;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.qty-btn:hover {
  background: #e0e0e0;
  transform: scale(1.05);
}

.qty-display {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
}

.cart-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-right: 10px;
}

.cart-info {
  display: inline-block;
  vertical-align: middle;
}
.product-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.product-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* keeps text aligned left */
}
.product-cell {
  display: flex;
  align-items: center;
  gap: 15px;
}

.product-cell .product-image {
  flex-shrink: 0;
}

.product-cell .product-image img {
  width: 60px;
  height: auto;
  border-radius: 8px;
}

.product-cell .product-title {
  font-weight: 600;
  font-size: 16px;
  text-align: left;
}
.product-info {
  display: flex;
  align-items: flex-start; /* keep top aligned */
  gap: 12px;
}

.product-info img {
  width: 60px;
  height: auto;
  border-radius: 8px;
}

.product-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
}
.product-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-info img {
  width: 60px;
  height: auto;
  border-radius: 8px;
}

.product-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* keep text stacked under Product column */
}

.product-name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
}
/* --------------------
   Mobile Responsiveness (refined)
--------------------- */
@media (max-width: 768px) {
  /* Navbar: keep horizontal, just shrink */
  .nav-container {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .nav-logo {
    max-width: 160px; /* smaller logo */
  }
  .nav-links {
    gap: 1rem;
  }
  .nav-links a {
    font-size: 0.9rem;
  }

  /* Hero section */
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }

  /* Trust section */
  .trust {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }
  .trust-item {
    flex: 1 1 120px;
  }

  /* Featured products: 2 vials wide */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  /* For very small screens */
  .nav-logo {
    max-width: 130px;
  }
  .nav-links {
    gap: 0.6rem;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* stay 2 wide instead of 1 */
  }
}
.social-links {
  margin-top: 12px;
  display: flex;
  gap: 12px;
}

.social-icon-link {
  color: #1877f2; /* Facebook blue */
  display: inline-flex;
  align-items: center;
}

.social-icon {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon-link:hover .social-icon {
  transform: scale(1.1);
  opacity: 0.8;
}
