/* Agriculture Website CSS - Based on Image Design */

/* Global Styles */
:root {
  --primary-green: #4CAF50;
  --secondary-green: #66BB6A;
  --light-green: #E8F5E8;
  --dark-text: #2E2E2E;
  --light-text: #666;
  --border-color: #E0E0E0;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --hover-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
}

/* Hero Section */
.product-hero {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.6));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Breadcrumb */
.breadcrumb-nav {
  margin-top: 1rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item a {
  color: white;
  text-decoration: none;
}

.breadcrumb-item.active {
  color: #4CAF50;
}

/* Container */
.product-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Two Column Layout */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

/* Left Column - Main Content (Large) */
.col-lg-8 {
  flex: 0 0 66.66667%;
  max-width: 66.66667%;
  padding: 0 15px;
}

.pe-lg-5 {
  padding-right: 3rem !important;
}

/* Right Column - Sidebar (Small) */
.col-lg-4 {
  flex: 0 0 33.33333%;
  max-width: 33.33333%;
  padding: 0 15px;
}

/* Main Product Image */
.main-product-image {
  text-align: center;
}

.main-product-image img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.hover-zoom:hover {
  transform: scale(1.02);
}

/* Product Content */
.product-content {
  margin-top: 2rem;
}

.description-section {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.section-title {
  color: var(--primary-green);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--light-green);
  padding-bottom: 0.5rem;
}

.description-text {
  color: var(--light-text);
  font-size: 1rem;
  line-height: 1.7;
}

/* Gallery Section */
.gallery-section {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.gallery-section .row {
  margin: 0 -10px;
}

.gallery-section .col-md-4,
.gallery-section .col-6 {
  padding: 0 10px;
  margin-bottom: 20px;
}

.gallery-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.hover-shadow:hover {
  box-shadow: var(--hover-shadow);
  transform: translateY(-2px);
}

/* Sidebar */
.product-sidebar {
  position: sticky;
  top: 2rem;
}

.sidebar-card {
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow);
  border: none;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.sidebar-card:hover {
  box-shadow: var(--hover-shadow);
  transform: translateY(-2px);
}

.sidebar-card .card-body {
  padding: 1.5rem;
}

.card-title {
  color: var(--dark-text);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-title i {
  color: var(--primary-green);
}

/* Search Form */
.search-form .input-group {
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-form .form-control {
  border: none;
  padding: 12px 20px;
  font-size: 0.95rem;
}

.search-form .form-control:focus {
  box-shadow: none;
  border-color: var(--primary-green);
}

.search-form .btn {
  background: var(--primary-green);
  border: none;
  padding: 12px 20px;
  transition: all 0.3s ease;
}

.search-form .btn:hover {
  background: var(--secondary-green);
  transform: translateX(2px);
}

/* Related Products */
.related-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--light-green);
  border-radius: 10px;
  text-decoration: none;
  color: var(--dark-text);
  transition: all 0.3s ease;
}

.related-item:hover {
  background: var(--primary-green);
  color: white;
  transform: translateX(5px);
}

.related-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 1rem;
  flex-shrink: 0;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-info h6 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.related-info .price {
  font-size: 0.85rem;
  color: var(--primary-green);
  font-weight: 600;
}

.related-item:hover .related-info .price {
  color: rgba(255,255,255,0.9);
}

.no-related {
  text-align: center;
  color: var(--light-text);
  font-style: italic;
  padding: 1rem;
}

/* Categories Card */
.btn-view-all {
  color: var(--primary-green);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.btn-view-all:hover {
  color: var(--secondary-green);
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #F8F9FA;
  border-radius: 8px;
  text-decoration: none;
  color: var(--dark-text);
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.category-item:hover {
  background: var(--light-green);
  border-left-color: var(--primary-green);
  transform: translateX(3px);
  color: var(--dark-text);
}

.category-name {
  font-weight: 500;
  font-size: 0.9rem;
}

.product-count {
  background: var(--primary-green);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Recent Posts Styling (for sidebar if needed) */
.recent-posts .post-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #F8F9FA;
  border-radius: 10px;
  margin-bottom: 1rem;
  text-decoration: none;
  color: var(--dark-text);
  transition: all 0.3s ease;
}

.recent-posts .post-item:hover {
  background: var(--light-green);
  transform: translateX(3px);
}

.recent-posts .post-image {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  margin-right: 1rem;
  flex-shrink: 0;
}

.recent-posts .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-posts .post-info h6 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.recent-posts .post-date {
  font-size: 0.75rem;
  color: var(--light-text);
}

/* Tags Styling */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-item {
  background: var(--light-green);
  color: var(--primary-green);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tag-item:hover {
  background: var(--primary-green);
  color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  /* Stack columns on tablet and below */
  .col-lg-8, .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .product-sidebar {
    position: static;
    margin-top: 2rem;
  }
  
  .pe-lg-5 {
    padding-right: 15px !important;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .description-section {
    padding: 1.5rem;
  }
  
  .sidebar-card .card-body {
    padding: 1rem;
  }
  
  .related-item {
    padding: 0.75rem;
  }
  
  .related-image {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .product-hero {
    height: 300px;
  }
  
  .description-section {
    padding: 1rem;
  }
  
  .gallery-image {
    margin-bottom: 1rem;
  }
}