:root {
--overlay-from: rgba(0, 0, 0, 0.3);
--overlay-to: rgba(0, 0, 0, 0.7);
--text: #fff;
}

body {
  margin: 0;
  font-family: Manrope, "Noto Sans", sans-serif;
  background: #fff;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid #f1f4f1;
}

header h2 {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #131712;
}

header nav a {
  margin-left: 20px;
  color: #131712;
  text-decoration: none;
  font-weight: 500;
}

header nav a:hover {
  text-decoration: underline;
}

/* Full width hero card */
.hero-card {
  position: relative;
  width: 100%;
  height: 70vh; /* Adjust height as needed */
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  transition: transform 0.7s ease;
}
.hero-card:hover .hero-media {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: linear-gradient(180deg, var(--overlay-from), var(--overlay-to));  
  color: var(--text);
}

.title {
  font-size: 3rem;
  margin: 0;
  font-weight: bold;
}
.subtitle {
  font-size: 1.2rem;
  margin: 10px 0;
  max-width: 800px;
}

.cta {
  margin-top: 15px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 30px;
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.cta:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-card {
    height: 70vh;
  }
  .title {
    font-size: 2rem;
  }
  .subtitle {
    font-size: 1rem;
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .hero-card {
    height: 50vh;
  }
  .title {
    font-size: 1.6rem;
  }
  .subtitle {
    font-size: 0.9rem;
  }
}

/* General Reset */
body {
font-family: "Noto Sans", sans-serif;
color: #333;
background-color: #f9f9f9;
line-height: 1.6;
}

/* Layout */
.FoodandMedicinal-page{
display: flex;
gap: 2rem;
padding: 2rem;
max-width: 1200px;
margin: auto;
}

.FoodandMedicinal-info {
flex: 1;
}

.FoodandMedicinal-gallery {
flex: 1;
position: relative;
display: flex;
flex-direction: column;
align-items: center;   /* Horizontal center /
justify-content: center; / Vertical center */
}

.FoodandMedicinal-gallery .gallery-container .slide img {
width: 100%;
height: 400px; /* Adjust height as needed /
object-fit: cover; / Ensures the image scales and crops nicely /
border-radius: 5px; / Optional for smooth edges */
}

.FoodandMedicinal-gallery .thumbnails img {
width: 80px; /* Set consistent thumbnail width /
height: 80px;
object-fit: cover;
cursor: pointer;
border: 2px solid transparent;
border-radius: 5px; / Optional */
}

.FoodandMedicinal-gallery .thumbnails img.active {
border-color: #333; /* Highlight active thumbnail */
}

/* Product Info */
.FoodandMedicinal-title {
font-size: 2rem;
margin-bottom: 1rem;
color: #222;
}

.FoodandMedicinal-details {
list-style: none;
margin: 1rem 0;
padding: 0;
}

.FoodandMedicinal-details li {
display: grid;
grid-template-columns: 200px 1fr; /* label column + value column /
align-items: center;
padding: 0.5rem 0.75rem;
border-bottom: 1px solid #e5e7eb; / line under each row */
font-size: 1rem;
color: #333;
}

.FoodandMedicinal-details li strong {
font-weight: 600;
color: #111;
}

.buy-button {
padding: 0.75rem 1.5rem;
background-color: #4f46e5;
color: #fff;
border: none;
cursor: pointer;
font-size: 1rem;
border-radius: 5px;
transition: background 0.3s ease;
}

.buy-button:hover {
background-color: #3730a3;
}

/* Gallery */
.gallery-container {
position: relative;
overflow: hidden;
border-radius: 10px;
}

.slide {
display: none;
width: 100%;
}

.slide.active {
display: block;
animation: fade 0.5s ease-in-out;
}

@keyframes fade {
from {opacity: 0.6;}
to {opacity: 1;}
}

.gallery-container img {
width: 100%;
display: block;
border-radius: 10px;
}

/* Navigation Buttons */
.prev, .next {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(0,0,0,0.5);
color: white;
border: none;
padding: 10px;
cursor: pointer;
border-radius: 50%;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
background: rgba(0,0,0,0.7);
}

/* Thumbnails */
.thumbnails {
display: flex;
justify-content: center;
gap: 0.5rem;
margin-top: 1rem;
}

.thumbnails img {
width: 60px;
height: 60px;
object-fit: cover;
cursor: pointer;
opacity: 0.7;
border: 2px solid transparent;
border-radius: 5px;
}

.thumbnails img.active {
opacity: 1;
border-color: #4f46e5;
}

/* Responsive Design */
@media (max-width: 768px) {
.FoodandMedicinal-page {
flex-direction: column;
padding: 1rem;
}

.FoodandMedicinal-gallery, .FoodandMedicinal-info {
width: 100%;
}
}