:root{ 
  --primary:#2d7a3e; 
  --accent:#ff6b35; 
  --saffron:#ff9933;
  --green-dark:#1a5928;
  --green-light:#e8f5e9;
}
body{ 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color:#333;
  font-size: 16px;
  line-height: 1.6;
}
.navbar-brand{ 
  color: var(--primary) !important; 
  font-weight:700;
  font-size:1.3rem;
}
.navbar{
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 0.75rem 0;
}
.navbar-nav .nav-link{
  padding: 0.5rem 1rem;
}
.btn-success{ 
  background: linear-gradient(135deg, var(--primary) 0%, var(--green-dark) 100%);
  border:none;
  font-weight:600;
  padding:0.5rem 1.5rem;
  transition: all 0.3s ease;
}
.btn-success:hover{
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45,122,62,0.3);
}
.btn-outline-success{
  border-color:var(--primary);
  color:var(--primary);
  font-weight:600;
  transition: all 0.3s ease;
}
.btn-outline-success:hover{
  background:var(--primary);
  border-color:var(--primary);
  transform: translateY(-2px);
}
.card{
  border:none;
  border-radius:12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  overflow:hidden;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.card-img-top{
  height:220px;
  object-fit:cover;
}
.text-success, .fw-bold.text-success{
  color:var(--primary) !important;
}
.bg-white{
  background:#fff !important;
}
.hero-section{
  background: linear-gradient(135deg, var(--green-light) 0%, #fff 100%);
  border-radius:16px;
  padding:3rem 2rem;
}
.hero-section h1{
  color:var(--green-dark);
  font-weight:700;
}
.category-card{
  background: linear-gradient(135deg, var(--green-light) 0%, #fff 100%);
  border-radius:12px;
  padding:2rem 1rem;
  text-align:center;
  font-weight:600;
  color:var(--green-dark);
  transition: all 0.3s ease;
  cursor:pointer;
}
.category-card:hover{
  background: linear-gradient(135deg, var(--primary) 0%, var(--green-dark) 100%);
  color:#fff;
  transform: scale(1.05);
}
footer{
  background: linear-gradient(135deg, var(--green-dark) 0%, #0d3d1a 100%);
}
.badge{
  padding:0.4rem 0.8rem;
  font-weight:600;
}
.list-group-item{
  border-radius:8px !important;
  margin-bottom:0.5rem;
  border:1px solid #e0e0e0;
}
.product-card{
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-brand span {
    display: none;
  }
  
  .hero-section {
    padding: 2rem 1rem !important;
    border-radius: 8px;
  }
  
  .hero-section h1 {
    font-size: 1.75rem !important;
  }
  
  .hero-section p {
    font-size: 0.95rem !important;
  }
  
  .btn-lg {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  .card-img-top {
    height: 180px;
  }
  
  .category-card {
    padding: 1.5rem 0.5rem;
    font-size: 0.9rem;
  }
  
  .category-card .fs-1 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-6 {
    font-size: 1.5rem !important;
  }
  
  h2, h3 {
    font-size: 1.5rem;
  }
  
  h4, h5 {
    font-size: 1.25rem;
  }
  
  .table-responsive {
    font-size: 0.85rem;
  }
  
  .btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
  
  .btn-group .btn {
    padding: 0.3rem 0.75rem;
    font-size: 0.85rem;
  }
  
  /* Carousel adjustments */
  #bannerCarousel .carousel-inner {
    border-radius: 8px !important;
  }
  
  #bannerCarousel img {
    max-height: 300px !important;
  }
  
  .carousel-caption {
    padding: 10px !important;
  }
  
  .carousel-caption h3 {
    font-size: 1.1rem;
  }
  
  .carousel-caption p {
    font-size: 0.85rem;
  }
  
  /* Form adjustments */
  .form-control, .form-select {
    font-size: 0.95rem;
  }
  
  /* Card body padding */
  .card-body {
    padding: 1rem;
  }
  
  /* Footer adjustments */
  footer {
    font-size: 0.85rem;
  }
  
  /* Spacing adjustments */
  .mb-5 {
    margin-bottom: 2rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  /* Product grid */
  .col-md-3 {
    margin-bottom: 1rem;
  }
  
  /* Hide long text on mobile */
  .text-truncate-mobile {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  .hero-section h1 {
    font-size: 1.5rem !important;
  }
  
  #bannerCarousel img {
    max-height: 250px !important;
  }
  
  .btn-lg {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .card-img-top {
    height: 150px;
  }
  
  h2 {
    font-size: 1.3rem;
  }
  
  .display-6 {
    font-size: 1.25rem !important;
  }
}
