/* ═══════════════════════════════════════════════════════════
   FA Timber — Product Cards
   Clean catalogue design: Image + Category + Name + Desc + Buttons
   ═══════════════════════════════════════════════════════════ */

/* ── Grid ── */
.sc-grid,
.products-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 1199px) {
  .sc-grid,
  .products-grid,
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 767px) {
  .sc-grid,
  .products-grid,
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 360px) {
  .sc-grid,
  .products-grid,
  .product-grid { gap: 10px; }
}

/* ── Card ── */
.sc-card {
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .sc-card:hover {
    border-color: #dfe2e7;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.1);
    transform: translateY(-4px);
  }
}
.sc-card:focus-within {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
  outline: none;
}

/* ── Media ── */
.sc-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  background: #f8f9fb;
  overflow: hidden;
  border-bottom: 1px solid #f0f1f4;
}
.sc-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  background: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .sc-card:hover .sc-media img.sc-img--main { transform: scale(1.05); }
}
.sc-img--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .sc-media.has-hover:hover .sc-img--main { opacity: 0; transform: scale(1.05); }
  .sc-media.has-hover:hover .sc-img--hover { opacity: 1; transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .sc-card, .sc-media img { transition: none !important; transform: none !important; }
}

/* ── Category Badge (top-left) ── */
.sc-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: #101828;
  color: #fff;
  pointer-events: none;
  white-space: nowrap;
}
.sc-badge--new { background: #fff; color: #101828; border: 1px solid #e6e8eb; }
.sc-badge--off { background: #0f766e; }
@media (max-width: 767px) {
  .sc-badge { top: 8px; left: 8px; font-size: 9px; padding: 5px 8px; }
}

/* ── Body ── */
.sc-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.sc-cat {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0f766e;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-name {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: #101828;
  margin: 0;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.25em * 2);
}
.sc-name a { color: inherit; text-decoration: none; }
.sc-name a:hover { color: #0f766e; }
.sc-spec {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: #667085;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(1.4em * 1);
}
.sc-desc {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: #9ca3af;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.45em * 1);
}

/* ── Actions ── */
.sc-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
  padding-top: 8px;
}
.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  padding: 9px 10px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.sc-btn:focus-visible { outline: 2px solid #0f766e; outline-offset: 2px; }
.sc-btn:active { transform: scale(0.98); }
.sc-btn i { font-size: 12px; flex-shrink: 0; }
.sc-btn--enquiry {
  background: #fff;
  color: #8B5A2B;
  border: 1.5px solid #8B5A2B;
}
.sc-btn--enquiry:hover {
  background: #FDF8F0;
  border-color: #6d4720;
  color: #6d4720;
}
.sc-btn--call {
  background: #8B5A2B;
  color: #fff;
  border: 1.5px solid #8B5A2B;
}
.sc-btn--call:hover {
  background: #7a4f25;
  border-color: #7a4f25;
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .sc-body { padding: 10px 12px 12px; gap: 4px; }
  .sc-cat { font-size: 9.5px; letter-spacing: 0.09em; }
  .sc-name { font-size: 14.5px; line-height: 1.28; min-height: calc(1.28em * 2); }
  .sc-spec { font-size: 11px; }
  .sc-desc { font-size: 11px; }
  .sc-actions { gap: 6px; padding-top: 6px; }
  .sc-btn { min-height: 38px; font-size: 12px; padding: 8px 6px; border-radius: 8px; }
  .sc-btn i { font-size: 11px; }
}
@media (max-width: 360px) {
  .sc-name { font-size: 13.5px; }
}
