/* General Styles */
:root {
  --primary-color: #5bda41;
  --secondary-color: #5a3921;
  --text-color: #333;
  --light-color: #f8f9fa;
  --dark-color: #212529;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: var(--light-color);
}

/* Responsive Base Size */
html {
  font-size: 16px;
}

/* Layout Containers */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Navbar Styles */
.navbar {
  padding: 0.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: #fff !important;
}

.navbar-brand {
  padding: 0;
  margin-right: 1rem;
}

.navbar-brand img {
  transition: transform 0.3s ease;
  height: 40px;
  width: auto;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  font-size: 1.25rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-collapse {
  transition: all 0.3s ease;
}

.navbar-nav {
  width: 100%;
}

.nav-item {
  padding: 0 0.5rem;
  margin: 0 0.25rem;
  transition: all 0.3s ease;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  color: #495057 !important;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

.nav-item.active .nav-link {
  color: var(--primary-color) !important;
}

.nav-item.active .nav-link::after {
  width: 100%;
}

/* Mobile Menu Styles */
@media (max-width: 991.98px) {
  .navbar-nav {
    padding: 1rem 0;
  }
  
  .nav-item {
    padding: 0.5rem 0;
    margin: 0;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .nav-link {
    padding: 0.75rem 1rem;
    display: block;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .d-flex {
    margin-top: 1rem;
    padding-left: 1rem;
    padding-bottom: 1rem;
  }
  
  .navbar-collapse {
    background-color: #fff;
    margin-top: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
}

/* Shopping Cart */
.cart-btn {
  position: relative;
  transition: all 0.3s ease;
}

.cart-btn:hover {
  transform: translateY(-2px);
}

.badge {
  font-size: 0.6rem;
  padding: 0.25em 0.4em;
  transform: translateY(-1px);
}

/* HERO SECTION */
.hero-section {
  position: relative;
  height: 40vh;
  min-height: 300px;
  width: 100%;
  overflow: hidden;
  margin-bottom: 3rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/hero-bg.jpg') no-repeat center center;
  background-size: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Mobile Hero Section */
@media (max-width: 991.98px) {
  .hero-section {
    height: 80vh;
    min-height: 700px;
    background: url('../images/hero-mobile-bg.jpg') no-repeat center center;
    background-size: cover;
  }

  .hero-bg {
    display: none;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    height: 60vh;
    min-height: 450px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Button Styles */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 2px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.25rem;
}

.btn-light {
  color: var(--dark-color);
  background-color: var(--light-color);
  border-color: var(--light-color);
}

.btn-outline-light {
  color: var(--light-color);
  border-color: var(--light-color);
  background-color: transparent;
}

.btn-light:hover,
.btn-outline-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Utility Classes */
.text-white {
  color: #fff !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

.position-relative {
  position: relative !important;
}

.align-items-center {
  align-items: center !important;
}

.h-100 {
  height: 100% !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

/* Flexbox Utilities */
.d-flex {
  display: flex !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.gap-3 {
  gap: 1rem !important;
}

/* Image Styles */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Background Colors */
.bg-light {
  background-color: var(--light-color) !important;
}

/* Text Alignment */
.text-center {
  text-align: center !important;
}

/* Shadow Effects */
.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Image Fallback */
.img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e9ecef;
  color: #6c757d;
  font-weight: bold;
}

/* Additional troubleshooting */
@media all {
  script[src*="feature_collector"] {
    display: none !important;
  }
}

/* Footer Styles */
footer {
  font-size: 0.95rem;
}

footer h5 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
  color: #fff;
}

footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

footer a {
  color: #e0e0e0 !important;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 0.15rem 0;
}

footer a:hover {
  color: #fff !important;
  transform: translateX(5px);
}

footer ul li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

footer .form-control {
  background-color: #000000;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}

footer .form-control::placeholder {
  color: #ccc;
}

footer .form-control:focus {
  background-color: rgba(255,255,255,0.2);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: none;
}


footer hr {
  border-color: rgba(255,255,255,0.1);
  margin: 1.5rem 0;
}

/* Responsive Footer */
@media (max-width: 767.98px) {
  footer .col-md-3 {
    margin-bottom: 2rem;
  }
  
  footer h5 {
    font-size: 1.2rem;
  }
  
  footer .row {
    gap: 1.5rem;
  }
  
  footer .text-center {
    text-align: left !important;
    padding-left: 1rem;
  }
}
