/* Global Styles */
:root {
    --primary: #4CAF50;
    --secondary: #00BCD4;
    --dark: #333;
    --light: #f4f4f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: #fff;
}

/* ======================
   Header Styles (Recommended)
   ====================== */
header {
    background: #4CAF50; /* Primary green */
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensures header stays above other content */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* Login button styling */
nav .btn {
    background: #00BCD4; /* Cyan */
    padding: 8px 20px;
    border-radius: 30px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Active page highlight (optional) */
nav a.active {
    border-bottom: 2px solid white;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* ======================
   Hero Section with Background Image
   ====================== */
.hero {
  position: relative; /* Needed for overlay positioning */
  height: 70vh; /* Adjust height as needed */
  background-image: url('../assets/hero-bg.jpg'); /* Path to your image */
  background-size: cover; /* Ensures image covers entire section */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents tiling */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white; /* Light text for dark backgrounds */
  margin-bottom: 2rem; /* Space below hero */
}

/* Dark overlay for better text readability */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 50% black overlay */
  z-index: 1;
}

/* Content container (text/buttons) */
.hero-content {
  position: relative; /* Brings content above overlay */
  z-index: 2; /* Higher than overlay */
  max-width: 800px;
  padding: 0 2rem;
}

/* Improve text visibility */
.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8); /* Text outline */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    height: 60vh;
    background-position: 60% center; /* Adjust focus on mobile */
  }
  .hero h2 {
    font-size: 2rem;
  }
}
/* Buttons */
.btn {
    background: var(--secondary);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
}

/* About Section */
.about {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* ======================
   Products Section (Boxed Layout)
   ====================== */
.products-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.product-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.product-image-box {
  width: 200px;
  height: 150px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #eee;
}

.product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info-box {
  flex-grow: 1;
  padding: 0 15px;
}

.price {
  font-size: 1.2rem;
  color: #4CAF50;
  font-weight: 600;
  margin-top: 5px;
}

.order-btn {
  background: #00BCD4;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  flex-shrink: 0;
  transition: all 0.3s;
}

.order-btn:hover {
  background: #0097A7;
  transform: translateY(-2px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .product-row {
    flex-direction: column;
    text-align: center;
  }
  
  .product-image-box {
    width: 100%;
    height: 200px;
  }
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
    }
}