/* Tools and hardware module styles extracted from app.css. */

/* Extracted from app.css lines 1360-1592. */
.tool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 22px;
  width: 100%;
}

.tool-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.tool-cover {
  overflow: hidden;
  display: grid;
  place-items: center;
  height: 150px;
  border-radius: 6px;
  margin-bottom: 14px;
  background: #EEF0EA;
  color: var(--brand-dark);
  font-weight: 800;
}

.tool-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-card-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: start;
  gap: 10px;
  margin-bottom: 4px;
}

.tool-card h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-share-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(198, 215, 209, 0.88);
  border-radius: 6px;
  padding: 0;
  background: #ffffff;
  color: var(--brand-dark);
  box-shadow: none;
}

.tool-share-icon-btn:hover {
  border-color: rgba(27, 61, 130, 0.26);
  background: #EEF0EA;
}

.tool-share-icon-btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.tool-card-meta {
  min-height: 18px;
  margin: 0 0 12px;
  color: #7a8b86;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.tool-card .price {
  color: #c85f20;
  font-weight: 800;
}

.tool-card .btn {
  min-height: 34px;
  border-radius: 6px;
  padding: 5px 12px;
  margin-left: auto;
}

.hardware-tool-card p {
  min-height: 44px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.hardware-detail {
  display: grid;
  gap: 18px;
}

.hardware-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hardware-detail-head span {
  color: var(--muted);
  font-size: 12px;
}

.hardware-detail-hero,
.hardware-detail-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hardware-detail-hero {
  display: grid;
  grid-template-columns: minmax(240px, 42%) 1fr;
  overflow: hidden;
}

.hardware-detail-cover {
  display: grid;
  place-items: center;
  min-height: 320px;
  background: #EEF0EA;
  color: var(--brand-dark);
  font-weight: 800;
}

.hardware-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hardware-detail-summary {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 32px;
}

.hardware-detail-summary h2 {
  margin: 0;
  font-size: 28px;
}

.hardware-price {
  width: max-content;
  border-radius: 4px;
  padding: 7px 13px;
  background: rgba(27, 61, 130, 0.1);
  color: var(--brand-dark);
  font-weight: 800;
}

.hardware-detail-summary p,
.hardware-detail-panel p,
.hardware-description {
  color: var(--muted);
  line-height: 1.8;
}

.hardware-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.hardware-detail-panel {
  padding: 22px;
}

.hardware-detail-panel h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.hardware-description p {
  margin: 0 0 10px;
}

.hardware-description li {
  margin-left: 18px;
}

.contact-panel {
  align-self: start;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}

.contact-row span {
  color: var(--muted);
}

.contact-row a {
  color: var(--brand-dark);
  font-weight: 800;
}

/* Extracted from app.css lines 2816-2843. */
.tool-library {
  display: grid;
  gap: 34px;
}

.tool-section {
  display: grid;
  gap: 16px;
}

.tool-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-section-head h2 {
  margin: 0;
  font-size: 24px;
}

.tool-section-head span {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.72);
  color: var(--muted);
  font-size: 12px;
}
