/* PRODUCTS.CSS - Products Page Styles
   Source Grid Agricultural Platform */

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.prod-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.prod-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.prod-title {
  text-align: center;
  margin-bottom: 4rem;
}

.prod-title h2 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--olive-green);
  margin-bottom: 1rem;
}

.prod-title p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Product Grid */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

/* Product Category Card */
.prod-card {
  background-color: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  text-decoration: none;
  display: block;
}

.prod-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.prod-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: var(--transition);
}

.prod-card:hover img {
  transform: scale(1.05);
}

.prod-card h3 {
  color: var(--olive-green);
  font-size: 1.8rem;
  font-weight: 600;
  margin: 1.5rem 2rem 1rem;
}

.prod-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 2rem 2rem;
  padding-bottom: 0.5rem;
}

/* Legacy selectors for backwards compatibility */
.prod-card-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.prod-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.prod-card:hover .prod-card-image img {
  transform: scale(1.15);
}

.prod-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.prod-card-overlay h3 {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
}

.prod-card-content {
  padding: 2rem;
  background-color: var(--white);
}

.prod-card-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.prod-card-btn {
  background-color: var(--grey);
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.prod-card-btn:hover {
  background-color: var(--olive-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 107, 47, 0.3);
}

/* Category Badge */
.category-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background-color: var(--olive-green);
  color: var(--white);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

/* Product List View (Alternative Layout) */
.prod-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.prod-list-item {
  display: grid;
  grid-template-columns: 350px 1fr;
  background-color: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: var(--transition);
}

.prod-list-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.prod-list-image {
  height: 300px;
  overflow: hidden;
}

.prod-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.prod-list-item:hover .prod-list-image img {
  transform: scale(1.1);
}

.prod-list-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.prod-list-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--olive-green);
  margin-bottom: 1rem;
}

.prod-list-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ========================================
   SHOW MORE FUNCTIONALITY
   ======================================== */

/* Hidden Products - Initially not displayed */
.prod-card.hidden-product {
  display: none;
}

/* Show Products - Displayed when expanded */
.prod-card.show-product {
  display: block;
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Show More / Show Less Button Container */
.show-more-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding: 2rem 0;
}

.show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--olive-green);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(99, 107, 47, 0.2);
}

.show-more-btn:hover {
  background: var(--olive-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 107, 47, 0.3);
}

.show-more-btn:active {
  transform: translateY(0);
}

.show-more-btn i {
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}

/* Show Less Button — outlined style */
.show-less-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--olive-green);
  border: 2px solid var(--olive-green);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.show-less-btn:hover {
  background: var(--olive-green-light);
  transform: translateY(-2px);
}

.show-less-btn:active {
  transform: translateY(0);
}

.show-less-btn i {
  font-size: 0.9rem;
}

/* Utility — hides a button without removing it from the DOM */
.btn-hidden {
  display: none !important;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  background-color: var(--olive-green);
  color: var(--white);
  padding: 1rem 0 0;
}

.footer .titlepage {
  margin-bottom: 2rem;
}

.footer .titlepage h2 {
  font-size: 2.5rem;
  color: var(--white);
}

.contact-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.contact-container {
  background-color: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.contact-tabs {
  margin-bottom: 2rem;
}

.tab-selector {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.tab-btn {
  background-color: var(--grey);
  color: var(--white);
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  background-color: var(--olive-green-hover);
}

.tab-btn.active {
  background-color: var(--olive-green);
  box-shadow: 0 4px 12px rgba(99, 107, 47, 0.3);
}

.tab-content {
  text-align: center;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-description h3 {
  font-size: 1.8rem;
  color: var(--olive-green);
  margin-bottom: 0.8rem;
}

.tab-description p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.main_form {
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.contactus,
.contactus1 {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid #ddd;
  border-radius: 50px;
  font-size: 1rem;
  color: var(--black);
  background-color: var(--white);
  transition: var(--transition);
}

.contactus1 {
  border-radius: 20px;
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.contactus:focus,
.contactus1:focus {
  outline: none;
  border-color: var(--olive-green);
  box-shadow: 0 0 0 3px var(--olive-green-light);
}

.send_btn {
  background-color: var(--grey);
  color: var(--white);
  padding: 1rem 3rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.send_btn:hover {
  background-color: var(--olive-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 107, 47, 0.4);
}

.send_btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.footer-info {
  margin-top: 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.border_right {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.location_icon {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.location_icon li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.location_icon li i {
  color: var(--white);
  font-size: 1.2rem;
}

.social_icon {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.social_icon li a {
  width: 45px;
  height: 45px;
  background-color: var(--white);
  color: var(--olive-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social_icon li a:hover {
  background-color: var(--olive-green-hover);
  color: var(--white);
  transform: translateY(-3px);
}

.link {
  list-style: none;
  padding: 0;
}

.link li {
  margin-bottom: 0.8rem;
}

.link li a {
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
}

.link li a:hover {
  color: var(--white);
  padding-left: 5px;
}

.privacy-text {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.sub_btn {
  background-color: var(--white);
  color: var(--olive-green);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  transition: var(--transition);
}

.sub_btn:hover {
  background-color: var(--olive-green-hover);
  color: var(--white);
  transform: translateY(-2px);
}

.copyright {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.copyright p {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 0.95rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1199px) {
  .border_right {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }

  .footer-box {
    margin-bottom: 2rem;
  }

  .footer-box h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
  }

  .footer-info {
    margin-top: 2rem;
    padding-top: 2rem;
  }
}

@media (max-width: 991px) {
  .prod-title h2 {
    font-size: 2.5rem;
  }

  .prod-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }

  .prod-list-item {
    grid-template-columns: 1fr;
  }

  .prod-list-image {
    height: 250px;
  }

  .prod-list-content {
    padding: 2rem;
  }

  .border_right {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  /* Centre product card content on mobile — applies to all cards */
  .prod-card h3 {
    text-align: center;
  }

  .prod-card p {
    text-align: center;
  }

  .prod-section {
    padding: 3rem 0;
  }

  .prod-title {
    margin-bottom: 3rem;
  }

  .prod-title h2 {
    font-size: 2rem;
  }

  .prod-title p {
    font-size: 1rem;
  }

  .prod-card-image {
    height: 250px;
  }

  .prod-card-overlay {
    padding: 1.5rem;
  }

  .prod-card-content {
    padding: 1.5rem;
  }

  .prod-list-content h3 {
    font-size: 1.6rem;
  }

  .contact-container {
    padding: 1.5rem;
  }

  .tab-selector {
    flex-direction: column;
  }

  .tab-btn {
    width: 100%;
  }

  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: 0 4px 12px var(--shadow);
  }

  .navbar-nav {
    gap: 0.5rem;
  }
}

@media (max-width: 576px) {
  .logo_section img {
    max-width: 160px;
  }

  .search-input {
    width: 150px;
  }

  .search-input:focus {
    width: 180px;
  }

  .prod-title h2 {
    font-size: 1.8rem;
  }

  .prod-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .prod-card-image {
    height: 200px;
  }

  .prod-card-overlay h3 {
    font-size: 1.5rem;
  }

  .category-badge {
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
  }
}
