/* =========================================================
   Industrial Pillars — Products CSS (Light Corporate)
   Used by: products.html + products/*.html
   ========================================================= */

/* ── Filter Buttons (products.html) ──────────────────────── */
.products-filter .filter-btn {
  background: var(--color-white);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

html[lang="ar"] .products-filter .filter-btn {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

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

.products-filter .filter-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ── Product Cards (products.html listing) ────────────────── */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-soft);
  cursor: pointer;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  transition: transform var(--transition);
}

.ip-card:hover .product-card__img img {
  transform: scale(1.02);
}

.product-card__img--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.product-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.product-card__cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

html[lang="ar"] .product-card__cat {
  font-family: var(--font-ar);
  letter-spacing: 0;
  text-transform: none;
}

.product-card__body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0;
}

.product-card__body p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
  margin: 0;
}

.product-card__body .btn-primary-ip {
  font-size: 0.88rem;
  padding: 0.5rem 1.25rem;
  align-self: flex-start;
}

/* ── Product Detail Gallery (products/*.html) ─────────────── */
.product-gallery__main img {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--color-bg-soft);
  padding: 0.5rem;
  cursor: pointer;
  transition: opacity var(--transition);
}

.product-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.product-gallery__thumbs .thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}

.product-gallery__thumbs .thumb:hover,
.product-gallery__thumbs .thumb.active {
  border-color: var(--color-accent);
}

/* ── Image Placeholder (no images yet) ───────────────────── */
.img-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  border: 2px dashed var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.img-placeholder svg {
  width: 48px;
  height: 48px;
  stroke: var(--color-border);
}

/* ── Product Feature Items ────────────────────────────────── */
.product-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.5;
  height: 100%;
}

.product-feature-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* RTL: flex row already starts from right — no reversal needed */

/* ── Related Product Cards ────────────────────────────────── */
.related-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  display: block;
}

.related-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.related-card__img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  cursor: pointer;
}

.related-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  background: var(--color-bg-soft);
  transition: transform var(--transition);
}

.related-card:hover .related-card__img img {
  transform: scale(1.02);
}

.related-card__img-placeholder {
  aspect-ratio: 3 / 2;
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.related-card__body {
  padding: 1rem 1.25rem 1.25rem;
}

.related-card__body h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.75rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 576px) {
  .product-gallery__thumbs .thumb {
    width: 60px;
    height: 60px;
  }
}
