/* ============================
   HERO BANNER — FINAL CLEAN VERSION
============================= */

.hero-banner {
  width: 100%;
  max-width: 680px;
  margin: 16px auto 22px auto;

  /* NHS-blue highlight */
  background:
    linear-gradient(to bottom, #0089d0 0px, #0089d0 3px, transparent 3px),
    linear-gradient(135deg, #eaf4ff 0%, #f7fbff 80%);

  border-radius: 16px;
  border: 1px solid #e5e7eb;

  padding: 18px;      /* ✔ makes it the same width as all other pills */

  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;

  box-shadow: 0 4px 18px rgba(15,23,42,0.06);
}

/* LEFT COLUMN */
.hero-left {
  flex: 1;
}

/* RIGHT IMAGE COLUMN */
.hero-right {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
}

.hero-image {
  width: 165px;
  border-radius: 12px;
  filter: drop-shadow(0px 8px 18px rgba(0,0,0,0.12));
  margin-bottom: 0;              /* perfect alignment */
}

/* TOP BADGE */
.hero-badge {
  display: inline-block;
  background: #dff2ff;
  color: #0369a1;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #bae6fd;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* TITLE */
.hero-title {
  font-size: 28px;
  font-weight: 800;
  white-space: nowrap;
  color: #0c4a6e;
  margin: 0 0 6px 0;
}

/* SUBTITLE */
.hero-subtitle {
  font-size: 16px;
  color: #1e293b;
  margin-bottom: 16px;
  font-weight: 500;
}

/* FEATURE LIST */
.hero-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;                    /* no extra height */
}

.hero-feature {
  display: flex;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15,23,42,0.05);
  font-size: 14px;
}

.hero-icon {
  font-size: 22px;
}

/* REMOVE BUTTONS IF EXISTING IN HTML */
.hero-buttons,
.hero-btn {
  display: none !important;
}

/* MOBILE */
@media (max-width: 700px) {
  .hero-banner {
    flex-direction: column;
    padding: 18px;
    gap: 18px;
    align-items: center;
    text-align: center;
  }

  .hero-title {
    white-space: normal;
  }

  .hero-right {
    align-items: center;
  }

  .hero-image {
    width: 150px;
    margin-top: 10px;
  }

  .hero-features {
    text-align: left;
  }
}


/* ============================================
   GLOBAL PAGE STYLE
============================================ */
body {
  background: #eef5fb;
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #0f172a;
}

.page {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 18px;
}


/* ============================================
   HEADER PILL
============================================ */
.header-pill {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px 18px;
  margin-bottom: 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.header-logo {
  width: 150px;
  height: auto;
  border-radius: 8px;
}

.header-middle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: #0369a1;
}

.header-middle a {
  color: #0369a1;
  font-weight: 600;
  text-decoration: none;
}

.header-middle a:hover {
  text-decoration: underline;
}

/* Cart icon */
.cart-icon {
  border: none;
  background-color: #e0f2fe;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  color: #0369a1;

  display: flex;
  align-items: center;
  gap: 8px;

  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.cart-icon-emoji {
  font-size: 22px;
}

.cart-count-badge {
  background-color: #dc2626;
  color: white;
  border-radius: 999px;

  min-width: 20px;
  height: 20px;
  padding: 0 6px;

  font-size: 13px;
  font-weight: 700;

  display: flex;
  align-items: center;
  justify-content: center;
}


/* ============================================
   TITLE PILL
============================================ */
.title-pill {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(15,23,42,0.06);
  margin-bottom: 18px;
}

.product-title {
  font-size: 28px;
  font-weight: 700;
  color: #0c4a6e;
  margin-bottom: 4px;
}

.product-subtitle {
  display: inline-block;
  background: #e0f2fe;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
}

.product-desc {
  font-size: 14px;
  color: #374151;
}


/* ============================================
   CARDS (used throughout)
============================================ */
.card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}

.section-heading {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0c4a6e;
}


/* ============================================
   PRODUCT GALLERY
============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.product-image {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

/* Image shadow + lift */
.raised {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.raised:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.20);
}


/* ============================================
   VIDEO PILL (same width as photo card)
============================================ */
.video-pill {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}

.video-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.video-wrapper {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #000;
}

.video-player {
  width: 100%;
  display: block;
}


/* ============================================
   INFO / FEATURES
============================================ */
.info-box {
  padding: 10px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;   /* 👈 NEW – matches checklist size */
  line-height: 1.55;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features li {
  margin: 8px 0;
  font-size: 14px;
}

.icon {
  color: #059669;
  font-weight: bold;
  margin-right: 6px;
}


/* ============================================
   PURCHASE SELECTOR
============================================ */
.options-group {
  margin-bottom: 16px;
}

.options-label {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.options-help {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

.option-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.option-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  cursor: pointer;
  font-size: 14px;
}

.option-pill--active {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1e40af;
}


/* Quantity control */
.qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-button {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  font-size: 20px;
  cursor: pointer;
}

.qty-input {
  width: 60px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  text-align: center;
  font-size: 16px;
}

.order-summary {
  display: flex;
  justify-content: space-between;
  margin: 16px 0;
  font-size: 15px;
  gap: 8px;
}

.order-summary-line {
  flex: 1;
}

.order-summary-price {
  font-weight: 700;
  color: #0f172a;
}

.button-main {
  width: 100%;
  background: #10b981;
  border: 1px solid #059669;
  color: white;
  padding: 12px;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 8px;
}

.button-main:hover {
  background: #059669;
}


/* ============================================
   CHECKOUT 3-STEP LAYOUT
============================================ */
.checkout-flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-step-card {
  background: #f9fbff;
  border-radius: 16px;
  border: 1px solid #dbeafe;
  padding: 16px 18px;
  box-shadow: 0 4px 10px rgba(148, 163, 184, 0.18);
}

.checkout-step-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.checkout-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checkout-step-title {
  margin: 0;
  font-size: 17px;
  color: #0c4a6e;
}

.checkout-step-subtitle {
  margin: 2px 0 10px 0;
  font-size: 13px;
  color: #64748b;
}

.checkout-option-note {
  font-weight: 400;
  font-size: 12px;
  color: #6b7280;
}

/* ============================================
   BASKET
============================================ */
.basket {
  margin-top: 20px;
}

.basket-heading {
  font-size: 18px;
  margin-bottom: 12px;
}

.basket-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.basket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.basket-item-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.basket-item-line {
  font-size: 15px;
}

.basket-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.basket-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 18px;
}

.basket-qty {
  font-size: 14px;
}

.basket-item-price {
  font-weight: 600;
}

.basket-remove {
  border: none;
  background: none;
  color: #dc2626;
  cursor: pointer;
  font-size: 14px;
}

.basket-total-row {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
}


/* ============================================
   DELIVERY OPTIONS (inline prices)
============================================ */
.delivery {
  margin-top: 8px;
}

.delivery-heading {
  font-size: 16px;
  margin-bottom: 8px;
}

.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.delivery-option {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;

  font-size: 15px;
  cursor: pointer;
}

.delivery-option strong {
  margin-left: 5px;
  color: #0369a1;
}

.delivery-option input {
  transform: scale(1.15);
}


/* Summary rows */
.delivery-summary {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
}

.delivery-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.delivery-summary-row--strong {
  font-weight: 700;
  font-size: 16px;
}


/* ============================================
   CHECKOUT BUTTON
============================================ */
.basket-checkout-row {
  margin-top: 16px;
}

.button-checkout {
  background: #3b82f6;
  border-color: #2563eb;
}

.button-checkout:hover {
  background: #2563eb;
}


/* ============================================
   REVIEWS
============================================ */
.reviews-grid {
  display: grid;
  gap: 16px;
}

.review-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
}

.review-stars {
  color: #fbbf24;
  font-size: 18px;
  margin-bottom: 4px;
}

.review-text {
  font-size: 14px;
}

.review-name {
  font-size: 13px;
  color: #475569;
  margin-top: 4px;
}


/* ============================================
   FAQ
============================================ */
.faq-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
}

.faq-item summary {
  font-weight: 600;
  font-size: 15px;
}

.faq-item p {
  margin-top: 8px;
  font-size: 14px;
  color: #374151;
}


/* ============================================
   FOOTER LINKS (new info pages)
============================================ */
.footer-pages {
  padding-bottom: 10px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-links li a {
  text-decoration: none;
  color: #0369a1;
  font-weight: 600;
}

.footer-links li a:hover {
  text-decoration: underline;
}


/* ============================================
   FOOTER CONTACT
============================================ */
.contact-bottom {
  text-align: center;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #0369a1;
}

.contact-row a {
  color: #0369a1;
  text-decoration: none;
  font-weight: 600;
}


/* ============================================
   CONTACT FORM STYLES
============================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.required {
  color: #dc2626;
  margin-left: 3px;
}

.form-group input,
.form-group textarea {
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.form-small-print {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}


/* ============================================
   SUCCESS POPUP OVERLAY
============================================ */
.submit-success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.submit-success-overlay.visible {
  display: flex;
}

.submit-success-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 22px;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  text-align: center;
}

.submit-success-box h2 {
  margin-bottom: 8px;
  font-size: 20px;
  color: #0c4a6e;
}

.submit-success-box p {
  font-size: 14px;
  color: #374151;
  margin-bottom: 12px;
}


/* ============================
   ADDED-TO-BASKET POPUP (CENTERED)
============================= */

.added-popup {
  position: fixed;
  left: 50%;
  top: 40%;                          /* adjust vertical position */
  transform: translate(-50%, -10px); /* start slightly up */
  z-index: 9999;

  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.added-popup.visible {
  opacity: 1;
  transform: translate(-50%, 0px);   /* slide in to center position */
  pointer-events: auto;
}

.added-popup-inner {
  background: #0f172a; /* navy */
  color: #ffffff;
  padding: 16px 20px;
  border-radius: 16px;
  min-width: 360px;
  max-width: 520px;

  box-shadow: 0px 12px 30px rgba(0,0,0,0.25);

  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;

  position: relative;
}

/* Success icon */
.added-popup-icon {
  width: 38px;
  height: 38px;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* Text + button area */
.added-popup-text-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.added-popup-text {
  font-size: 14px;
  line-height: 1.45;
}

/* View basket button */
.added-popup-view {
  align-self: flex-start;
  padding: 6px 14px;
  background: #facc15;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.added-popup-view:hover {
  background: #eab308;
}

/* Close X button */
.added-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: #ffffffcc;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.2s;
}

.added-popup-close:hover {
  opacity: 0.7;
}






/* ============================
   MOBILE FIX: stop sideways scroll
============================= */

/* Make sure nothing can be wider than the viewport */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;   /* kills side-scroll on mobile */
}

/* Generic containers – keep them inside the screen */
.main-container,
.page-wrapper,
.page-inner,
.site-wrapper,
.content-wrapper {
  max-width: 100%;
}

/* Make all images responsive so they can't overflow */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* On smaller screens, reduce side padding/margins on “pill” cards */
@media (max-width: 600px) {
  .header-pill,
  .content-pill,
  .card,
  .info-card,
  .video-pill {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }

  .checkout-step-card {
    padding: 14px 14px;
  }
}


/* Normalize all returns-page text (except headings) */
.returns-page p,
.returns-page ul,
.returns-page li,
.returns-page .info-box,
.returns-page .product-desc,
.returns-page .contact-bottom,
.returns-page .card {
  font-size: 14px;
  line-height: 1.55;
}

/* Match body text size used in index hero info section */
.privacy-page p,
.privacy-page li,
.privacy-page .info-box p {
  font-size: 15px;
  line-height: 1.55;
}

/* -----------------------------
   Modern Link Styling (Site-Wide)
------------------------------ */

a {
  color: #0366d6;              /* GitHub blue */
  text-decoration: none;       /* remove ugly underline */
  font-weight: 500;
}

a:hover {
  text-decoration: underline;  /* subtle underline on hover */
  color: #024ea1;              /* darker on hover */
}

a:visited {
  color: #0353b4;              /* same as GitHub visited link colour */
}

.checkout-step-note {
  font-size: 14px;
  font-weight: 500;
}

/* ============================
   FOOTER PILL
============================ */
.footer-pill {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px 16px;
  margin: 24px auto 12px auto;
  font-size: 12px;
  color: #475569;
  text-align: center;
  max-width: 680px; /* matches your page width */
  box-shadow: 0 2px 6px rgba(15,23,42,0.04);
}

.footer-pages .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px; /* smaller font */
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* two columns */
  gap: 6px 20px; /* spacing: row, column */
}

.footer-columns li a {
  text-decoration: none;
  color: #0f172a; /* matches your theme */
}

.footer-columns li a:hover {
  text-decoration: underline;
}

/* ============================================
   MOBILE LAYOUT TWEAKS FOR HEADER & CONTACT
   (phones & small screens)
============================================ */
@media (max-width: 480px) {
  /* Stack logo, contact info and cart vertically */
  .header-pill {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
  }

  .header-left {
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }

  .header-logo {
    width: 130px;   /* slightly smaller logo on phones */
  }

  .header-middle {
    font-size: 13px;
  }

  /* Make the cart button a nice wide tap target */
  .cart-icon {
    align-self: stretch;
    justify-content: center;
    width: 100%;
  }

  /* Contact form cards – a bit tighter padding on tiny screens */
  .title-pill,
  .card {
    padding: 14px;
  }

  .section-heading {
    font-size: 17px;
  }

  .form-group label {
    font-size: 13px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 13px;
  }
}
