/* === GENERAL STYLES === */
body {
  font-family: 'Inter', sans-serif;
  background: white;
  margin: 0;
  padding: 0;
  color: #333;
}

body.no-scroll {
  overflow: hidden;
}

/* === PAGE TITLES (H1) === */
main > h1 {
  font-family: 'Playfair Display', serif;
  color: #237c64;
  font-size: 2.2rem;
  line-height: 1.25;
  margin: 2rem auto 0.5rem auto;
  text-align: center;
  padding: 0 1rem;
  display: block;
}

main > h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: rgba(35, 124, 100, 0.5);
  margin: 0.5rem auto 0 auto;
  border-radius: 2px;
}

/* === HEADER BAR === */
.site-header {
  position: relative;
  background-color: #237c64;
  padding: 1rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.site-header img.logo {
  width: 200px;
  height: auto;
}

/* Desktop navigation */
.tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 0.5rem 0;
}

.tab {
  text-decoration: none;
  background: transparent;
  color: white;
  font-weight: 600;
  border: 2px solid white;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.tab:hover,
.tab.active {
  background: white;
  color: #237c64;
}

/* Burger button */
.burger {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: none;
  z-index: 1100;
}

/* Drawer menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background: #237c64;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 5rem 1rem 2rem 1rem;
  box-shadow: 2px 0 8px rgba(0,0,0,0.3);

  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1050;
}

.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu a {
  text-decoration: none;
  background: none;
  border: 2px solid white;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  padding: 0.75rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.mobile-menu a:hover {
  background: white;
  color: #237c64;
}

/* Overlay (added by JS) */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 1040;
}
.menu-overlay.active {
  display: block;
}

/* Show burger on mobile, hide desktop nav */
@media (max-width: 768px) {
  .burger { display: block; }
  .tabs { display: none; }
}

/* === HOME CARD === */
#Home,
.bio-card,
.contact-card,
.charities-card {
  max-width: 800px;
  margin: 40px auto 20px auto;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  text-align: left;
  line-height: 1.6;
  font-size: 1rem;
}

#Home h2,
.bio-card h2,
.contact-card h2,
.charities-card h2 {
  font-family: 'Playfair Display', serif;
  color: #237c64;
  font-size: 2rem;
  margin-bottom: 10px;
}

/* === GALLERY (if reused later) === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 30px;
  max-width: 1200px;
  margin: 40px auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.photo {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.photo.landscape { grid-column: span 2; }

.photo img {
  width: 100%;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
}
.photo img.portrait { max-height: 400px; object-fit: contain; }
.photo img.landscape { height: 250px; object-fit: cover; }

.caption {
  position: absolute;
  bottom: 10px; left: 10px;
  margin: 0; padding: 6px 10px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  font-weight: 500;
  color: #333;
  font-size: 0.9rem;
  transition: transform 0.3s ease, color 0.3s ease;
  pointer-events: none;
}

.photo:hover img { transform: scale(1.05); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.photo:hover .caption { transform: scale(1.05); background: #fff; color: #000; }

/* === OUR VALUES === */
.our-values {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem;
  text-align: center;
}

.our-values h2,
.carousel-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #237c64;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  display: block;
  padding-bottom: 0.5rem;
}

.our-values h2::after,
.carousel-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: rgba(35, 124, 100, 0.5);
  margin: 0.5rem auto 0 auto;
  border-radius: 2px;
}

.values-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.value-item {
  flex: 1 1 300px;
  max-width: 300px;
  text-align: center;
  background: #f8fdfb;
  padding: 2rem 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.value-item img {
  background: #e8f5f0;
  border-radius: 50%;
  padding: 12px;
  margin-bottom: 1rem;
  width: 60px;
  height: 60px;
}

.value-item h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}
.value-item p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

/* === SHOP GRID === */
.shop {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.shop h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #237c64;
  margin-bottom: 2rem;
  text-align: center;
}

.product {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.product img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #f8f8f8;
  border-bottom: 1px solid #eee;
}
.product-info {
  padding: 1rem;
  text-align: left;
}
.product-info h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #1a1a1a;
}
.product-info .price {
  font-weight: bold;
  color: #237c64;
  margin: 0.5rem 0;
}
.product-info .description {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

/* === BUY NOW BUTTON === */
.product-info a.buy-btn {
  display: inline-block;
  background: #237c64;
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  margin-top: 0.8rem;
  text-decoration: none;
  transition: background 0.3s ease;
}

.product-info a.buy-btn:hover {
  background: #1b5e4f; /* darker green */
  color: #fff; /* stays white */
}

/* === LIGHTBOX === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.lightbox .close-btn {
  position: absolute;
  top: 30px; right: 40px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
}

/* Utility */
.hidden { display: none; }

/* === CAROUSEL === */
:root {
  --slide-w: 480px;
  --slide-h: 720px;
  --gap: 16px;
  --side-pad: 120px;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(3 * var(--slide-w) + 2 * var(--gap) + 2 * var(--side-pad));
  margin: 1rem auto 3rem auto;
  overflow: hidden;
}

.carousel-track-container {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  /* Smooth scroll + snap for clean transitions */
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.carousel-track {
  display: flex;
  gap: var(--gap);
  list-style: none;
  padding: 0 var(--side-pad);
  margin: 0;
}

.carousel-track::after {
  content: "";
  flex: 0 0 var(--side-pad);
}

.carousel-slide {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  /* Snap each slide to center */
  scroll-snap-align: center;
}

.carousel-slide img {
  max-width: var(--slide-w);
  max-height: var(--slide-h);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  transition: transform 0.3s ease;
}

.carousel-slide img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.carousel-btn {
  background-color: rgba(0,0,0,0.6);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background 0.3s, opacity 0.3s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}

.carousel-wrapper:hover .carousel-btn {
  opacity: 1;
  pointer-events: auto;
}

.carousel-btn:hover {
  background-color: rgba(0,0,0,0.8);
}

.carousel-btn.prev {
  left: 0.5rem;
}

.carousel-btn.next {
  right: 0.5rem;
}

/* Carousel fading edges */
.carousel-wrapper::before,
.carousel-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50px;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

@media (max-width: 768px) {
  .carousel-wrapper::before,
  .carousel-wrapper::after {
    width: 30px;
  }
}

.carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, white 0%, white 60%, transparent 100%);
}

.carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, white 0%, white 60%, transparent 100%);
}

@media (max-width: 1200px) {
  .carousel-btn {
    opacity: 1;
    pointer-events: auto;
  }
  :root {
    --slide-w: 60vw;
    --slide-h: calc(60vw * 1.5);
    --side-pad: 90px;
  }
}

/* === FOOTER === */
.site-footer {
  background: #237c64;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

.site-footer h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.site-footer p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
  color: #e0f2eb;
}

.site-footer .footer-content {
  max-width: 900px;
  margin: 0 auto;
}

/* === PRODUCT IMAGE LINK (for checkout click-through) === */
.product-link {
  display: block;
}
.product-link:focus {
  outline: 3px solid rgba(255,255,255,0.8);
  outline-offset: -3px;
}

/* ===================================================== */
/* === CHECKOUT PAGE IMAGE ADJUSTMENTS === */
/* ===================================================== */

.checkout .product {
  max-width: 900px;
  margin: 0 auto;
}

.checkout .product img {
  max-height: 420px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  background: #f8f8f8;
}

/* === CHECKOUT ACTION BUTTONS === */
.checkout-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.checkout-actions .buy-btn {
  flex: 1;
  text-align: center;
  cursor: pointer;
  border: none;

  /* ✅ Typography consistency */
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;

  /* ✅ Button reset */
  -webkit-appearance: none;
  appearance: none;
}

/* Primary: Add to cart */
.checkout-actions .buy-btn.primary {
  background: #237c64;
  color: #fff;
}

.checkout-actions .buy-btn.primary:hover {
  background: #1b5e4f;
}

/* Secondary: Continue shopping */
.checkout-actions .buy-btn.secondary {
  background: transparent;
  color: #237c64;
  border: 2px solid #237c64;
}

.checkout-actions .buy-btn.secondary:hover {
  background: #237c64;
  color: #fff;
}
