/**
 * Simple Show Section CSS
 * Basic styling for the product sections and forms
 */

/* Simple Product Section */
.simple-product-section {
  margin: 40px 0;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.simple-product-section .section-header {
  text-align: center;
  margin-bottom: 30px;
}

.simple-product-section .section-header h2 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 2em;
}

.simple-product-section .section-subtitle {
  color: #666;
  font-style: italic;
  margin: 0;
  font-size: 1.1em;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-card {
  padding: 15px;
}

.product-card a {
  text-decoration: none;
  color: inherit;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}

.product-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.1em;
  color: #333;
}

.product-card .price {
  font-weight: bold;
  color: #0073aa;
  font-size: 1.2em;
}

/* Placeholder Content */
.placeholder-content {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.placeholder-icon {
  font-size: 4em;
  margin-bottom: 20px;
  opacity: 0.5;
}

.placeholder-content h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 1.5em;
}

.placeholder-content p {
  margin: 0;
  font-size: 1.1em;
  line-height: 1.6;
}

/* Test Form Container */
.test-form-container {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #e9ecef;
}

.test-form-container h3 {
  margin: 0 0 15px 0;
  color: #333;
}

.test-form-container p {
  margin: 0 0 20px 0;
  color: #666;
}

/* Form Styling */
.form-field {
  margin-bottom: 15px;
}

.form-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Success Message */
.success-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #4caf50;
  color: white;
  padding: 15px 20px;
  border-radius: 5px;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 40px 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0073aa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-state p {
  color: #666;
  font-size: 1.1em;
  margin: 0;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.no-results h3 {
  margin: 0 0 15px 0;
  color: #333;
}

.no-results p {
  margin: 0;
  font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }

  .simple-product-section {
    padding: 20px;
    margin: 20px 0;
  }

  .simple-product-section .section-header h2 {
    font-size: 1.5em;
  }

  .test-form-container {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card img {
    height: 150px;
  }
}
