/* Products page specific styles */

.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-12 { margin-bottom: 3rem; }
.text-center { text-align: center; }

/* Filter Controls */
.filter-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.filter-btn.active {
  background: var(--color-forest);
  color: var(--color-background);
  border-color: var(--color-forest);
}

/* Product Card specific styles */
.product-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-card__image-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.product-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.product-card__placeholder--soil {
  background: linear-gradient(135deg, #2A5A43, #1B3A2D);
}

.product-card__placeholder--bio {
  background: linear-gradient(135deg, #3D7A5C, #2A5A43);
}

.product-card__placeholder--organic {
  background: linear-gradient(135deg, #6B4A30, #8B6A4A);
}

.product-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.9);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-forest);
}

.product-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-forest);
}

.product-card__desc {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.product-card__meta {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gold);
}

/* Crop Grid */
.crop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.crop-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.crop-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.crop-item span {
  font-weight: 500;
  color: var(--color-forest);
}

@media (min-width: 768px) {
  .crop-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .crop-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: white;
  width: 100%;
  max-width: 600px;
  border-radius: 1rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-text);
  line-height: 1;
}

.modal__header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.modal__header .label {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--color-gold);
  font-weight: 600;
  font-size: 0.875rem;
}

.modal__header h2 {
  margin: 0;
  color: var(--color-forest);
}

.modal__body {
  padding: 1.5rem 2rem 2rem;
}

.modal__details {
  display: grid;
  gap: 0.5rem;
  background: var(--color-warm);
  padding: 1rem;
  border-radius: 0.5rem;
}

.modal__benefits-list {
  padding-left: 1.5rem;
  margin: 0;
}

.modal__benefits-list li {
  margin-bottom: 0.5rem;
}
