/* ============================================================
   Coil Type Tab Filter — cbc-style.css — v4.0.0
   Tabs = L1 categories · Cards = L2 subcategory terms
   ============================================================ */

.cbc-section {
  --cbc-navy:    #1a1a72;
  --cbc-card-bd: #e4e0d8;
  --cbc-tab-bd:  #ccc8be;
  --cbc-img-bg:  #f5f4f0;
  --cbc-sep:     #ede9e3;
  font-family: inherit;
}

/* ── Tab bar ──────────────────────────────────────────────── */
.cbc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.cbc-tab {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid var(--cbc-tab-bd);
  background: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: #2d2d2d;
  white-space: nowrap;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cbc-tab:focus-visible {
  outline: 2px solid var(--cbc-navy);
  outline-offset: 2px;
}

.cbc-tab:hover {
  border-color: var(--cbc-navy);
  color: var(--cbc-navy);
}

.cbc-tab.active,
.cbc-tab[aria-selected="true"], .cbc-tab:hover {
  background: var(--cbc-navy) !important;
  border-color: var(--cbc-navy) !important;
  color: #ffffff;
}

/* ── Panels ──────────────────────────────────────────────── */
.cbc-panel {
  display: none;
}

.cbc-panel.active {
  display: block;
  animation: cbcFadeIn 0.22s ease;
}

@keyframes cbcFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* ── Subcategory card grid ───────────────────────────────── */
.cbc-grid {
  display: grid;
  grid-template-columns: repeat(var(--cbc-cols, 7), 1fr);
  gap: 14px;
}

/* ── Card ────────────────────────────────────────────────── */
.cbc-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--cbc-card-bd);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cbc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.cbc-card:focus-visible {
  outline: 2px solid var(--cbc-navy);
  outline-offset: 2px;
}

/* Card image */
.cbc-card-img {
  position: relative;
  width: 100%;
  overflow: hidden;
   padding: 10px 9px;
	text-align:center;

}

.cbc-card-img img {
  inset: 0;
  object-fit: cover;
  display: block;
	max-height: 80px;
    width: AUTO;
}

/* Placeholder when no image is set */
.cbc-no-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22%;
}

.cbc-no-img svg {
  width: 100%;
  height: 100%;
}

/* Card footer */
.cbc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 10px 10px 12px;
  min-height: 52px;
  border-top: 1px solid var(--cbc-sep);
	    background: #F9F8F5;
}

.cbc-card-name {
  flex: 1;
  font-size: 12.5px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cbc-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: var(--cbc-navy);
  flex-shrink: 0;
}

.cbc-card-arrow svg {
  width: 14px;
  height: 14px;
}

/* ── States ──────────────────────────────────────────────── */
.cbc-empty {
  text-align: center;
  padding: 80px 24px;
}

.cbc-empty p {
  color: #aaa;
  font-size: 15px;
}

.cbc-error {
  padding: 14px 18px;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 8px;
  color: #c53030;
  font-size: 13.5px;
}

/* ── Responsive breakpoints ──────────────────────────────── */
@media (max-width: 1200px) {
  .cbc-grid { grid-template-columns: repeat(5, 1fr) !important; }
}

@media (max-width: 900px) {
  .cbc-grid { grid-template-columns: repeat(4, 1fr) !important; }
}

@media (max-width: 660px) {
  .cbc-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .cbc-tab  { font-size: 13px; }
}

@media (max-width: 480px) {
  .cbc-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .cbc-tabs { gap: 6px; }
  .cbc-tab  { height: 34px; padding: 0 14px; font-size: 12.5px; }
}
