/* ============================================================
   product-section.css
   Styles the product suite grids, tab navigation, use-case
   panels, and individual product cards used on the Mining,
   Logistics, and Hospitality pages.
   ============================================================ */

/* --- Section wrapper --- */
.product-section {
  padding: 64px 48px;
  max-width: 1300px;
  margin: 0 auto;
}
.product-section h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
  color: var(--text);
}
.product-section .psub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
}

/* --- Product card grid --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 32px;
}

/* --- Two-column layout modifier (Logistics and Hospitality pages) --- */
.product-grid--two-col { grid-template-columns: repeat(2, 1fr); }

/* --- Individual product card --- */
.product-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.15s;
}
.product-card:hover { border-color: #B0BAD0; }
.product-card img {
  width: 100%;
  height: 158px;
  object-fit: cover;
  display: block;
}

/* --- Card body --- */
.product-card__body {
  padding: 18px 20px;
  background: var(--white);
}

/* --- Card name --- */
.product-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

/* --- Card type label --- */
.product-card__type {
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 8px;
}

/* --- Card description --- */
.product-card__description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* --- Module tags --- */
.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.module-tag {
  background: var(--light);
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

/* --- Placeholder card (coming soon) --- */
.product-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  min-height: 200px;
}
.product-card__placeholder-inner {
  padding: 24px;
  text-align: center;
}
.product-card__placeholder-icon {
  font-size: 36px;
  color: var(--blue);
  opacity: 0.35;
  margin-bottom: 10px;
}
.product-card__placeholder h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.product-card__placeholder p {
  font-size: 12px;
  color: var(--muted);
}

/* --- Tab navigation --- */
.tab-group {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.tab-button {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.tab-button:hover {
  border-color: #B0BAD0;
  color: var(--text);
}

/* --- Active tab states per vertical --- */
.tab-button--active-mining {
  background: rgba(29,158,117,0.1);
  border-color: var(--res);
  color: var(--res);
}
.tab-button--active-logistics {
  background: rgba(0,174,255,0.1);
  border-color: var(--blue);
  color: var(--blue);
}
.tab-button--active-hospitality {
  background: rgba(153,53,86,0.1);
  border-color: var(--hos);
  color: var(--hos);
}

/* --- Tab panel (use-case cards grid) --- */
.tab-panel { display: none; }
.tab-panel--active {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.tab-panel .product-card img { height: 150px; }
.tab-panel .product-card__name { font-size: 13px; }
