/* Standing Desk Height Calculator */

.calculator-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
}

.calculator-card {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calculator-header {
  text-align: center;
  margin-bottom: 40px;
}

.calculator-header h1 {
  font-size: 32px;
  color: #333;
  margin-bottom: var(--space-3);
}

.calculator-header p {
  font-size: 18px;
  color: #666;
}

.input-section {
  margin-bottom: 30px;
}

.input-group {
  display: flex;
  gap: var(--space-4);
  align-items: flex-end;
}

.input-field {
  flex: 1;
}

.input-field label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: #333;
}

.input-field input,
.input-field select {
  width: 100%;
  padding: var(--space-3);
  font-size: 18px;
  border: 2px solid #ddd;
  border-radius: var(--radius-md);
  box-sizing: border-box;
}

.input-field input:focus,
.input-field select:focus {
  outline: none;
  border-color: var(--color-purple-primary);
}

.calculate-btn {
  width: 100%;
  padding: var(--space-4);
  font-size: 18px;
  font-weight: 600;
  background: var(--gradient-purple);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform var(--transition-base);
}

.calculate-btn:hover {
  transform: translateY(-2px);
}

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

.results-section {
  margin-top: 40px;
  display: none;
}

.results-section.visible {
  display: block;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: 30px;
}

.result-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.result-card.sitting {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.result-card.standing {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.result-card h3 {
  font-size: 20px;
  margin-bottom: var(--space-4);
  color: #333;
}

.result-card .big-number {
  font-size: 48px;
  font-weight: bold;
  color: #333;
  margin: var(--space-3) 0;
}

.result-card .range {
  font-size: 16px;
  color: #555;
  margin-top: var(--space-2);
}

.tips-section {
  background: #f8f9fa;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 30px 0;
}

.tips-section h3 {
  margin-bottom: var(--space-4);
  color: #333;
}

.tips-section ul {
  list-style: none;
  padding: 0;
}

.tips-section li {
  padding: var(--space-2) 0;
  padding-left: 28px;
  position: relative;
}

.tips-section li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4CAF50;
  font-weight: bold;
}

.recommendations-section {
  margin-top: 40px;
}

.recommendations-section h3 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 24px;
}

/* PRODUCT-GRID - REMOVED (Duplicate)
   Now defined in: blocks/product-grid.css */

.product-card-mini {
  background: white;
  border: 1px solid #eee;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card-mini:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.product-card-mini img {
  max-width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: var(--space-3);
}

.product-card-mini h4 {
  font-size: 14px;
  margin-bottom: var(--space-2);
  height: 40px;
  overflow: hidden;
}

.product-card-mini .price {
  font-size: 20px;
  font-weight: bold;
  color: #FF9900;
  margin: var(--space-2) 0;
}

.product-card-mini .deal-score {
  display: inline-block;
  background: #4CAF50;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.product-card-mini .view-btn {
  display: inline-block;
  width: 100%;
  padding: 10px;
  background: var(--color-purple-primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: background var(--transition-base);
}

.product-card-mini .view-btn:hover {
  background: #5568d3;
}

@media (max-width: 768px) {
  .result-cards {
    grid-template-columns: 1fr;
  }

  .input-group {
    flex-direction: column;
    align-items: stretch;
  }
}
