/* WRAPPER */
.ca-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding: 16px 0px 28px;
}

/* TOP FILTER BOX */
.ca-top-box {
  background: #eef2f4;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #dde4e8;
  margin-bottom: 18px;
}

/* HEADER */
.ca-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.ca-header-left {
  min-width: 240px;
  flex: 1 1 320px;
}

.ca-title {
  font-size: 24px;
  font-weight: 800;
}

.ca-sub {
  font-size: 13px;
  color: #6b7280;
}

/* FILTERS */
.ca-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.ca-select {
  width: 160px;              /* FIXED WIDTH */
  max-width: 160px;
  height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #23baa5;
  color: #23baa5;

  white-space: nowrap;       /* prevent wrapping */
  overflow: hidden;          /* hide overflow */
  text-overflow: ellipsis;   /* show ... */
}

.ca-btn {
  height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.ca-apply {
  background: #23baa5;
  color: #fff;
}

.ca-reset {
  background: #6c757d;
  color: #fff;
}

/* SEARCH */
.ca-search {
  margin-top: 15px;
}

.ca-search-box {
  position: relative;
}

.ca-search-box input {
  width: 100%;
  height: 44px;
  padding-left: 40px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

/* 🔥 GRID FIX (IMPORTANT) */
.ca-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* 🔥 CARD FIX (FORCE COLUMN LAYOUT) */
.ca-card {  
  width: 100%;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: 0.2s;
}

.ca-card:hover {
  transform: translateY(-3px);
}

/* 🔥 IMAGE FIX */
.ca-img {
  width: 100%;
}

.ca-img img {
  width: 100% !important;
  height: 180px;
  object-fit: cover;
  display: block;
  object-position: top;
}

/* CONTENT */
.ca-content {
  padding: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%; /* important */
}

/* TITLE */
.ca-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

/* META */
.ca-meta {
  font-size: 12px;
  color: #777;
  margin-bottom: 10px;
}

/* DESCRIPTION */
.ca-desc {
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* 🔥 CLASS BLOCK FIX */
.ca-class {
  background: #f1f3f2;
  border-left: 4px solid #23baa5;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 12px;
  display: block;
}

/* SEPARATOR */
.ca-sep {
  margin: 0 5px;
  color: #ccc;
}

/* PRICE */
.ca-price {
  font-weight: 700;
  margin-top: 10px;
}

/* BUTTON */
.ca-btn-main {
  display: block;
  text-align: center;
  margin-top: auto;
  padding: 12px;
  background: #23baa5;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  width: 100%;
}

/* EMPTY */
.ca-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 20px;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .ca-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ca-grid {
    grid-template-columns: 1fr;
  }

  .ca-select,
  .ca-btn {
    width: 100%;
  }
}
.ca-load-more-btn {
  display: block;
  margin: 20px auto;
  padding: 12px 24px;
  background: #23baa5;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.ca-card {
  display: flex;
  flex-direction: column;
}
.ca-search-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  align-items: center;
}

.ca-search-box {
  position: relative;
  flex: 1;
}

.ca-search-box input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 44px;
  border-radius: 10px;
  border: 1px solid #d7dde2;
  background: #fff;
  box-sizing: border-box;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
}

.ca-search-apply {
  display: none;
  height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  border: none;
  background: #23baa5;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.ca-filter-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: none;
  background: #23baa5;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  align-items: center;
  justify-content: center;
}

.ca-filters-mobile {
  display: none;
  margin-top: 14px;
  flex-direction: column;
  gap: 10px;
}

.ca-filters-mobile.active {
  display: flex;
}

.ca-mobile-actions {
  display: flex;
  gap: 10px;
}

.ca-mobile-actions .ca-btn {
  flex: 1;
}

@media (min-width: 769px) {
  .ca-filters-mobile,
  #ca-filter-panel,
  .ca-filter-toggle,
  .ca-search-apply {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .ca-filters-desktop {
    display: none !important;
  }

  .ca-search-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ca-filter-toggle {
    display: inline-flex;
  }
}

.ca-search-wrapper {
  margin-top: 12px;
}

/* ROW 1 */
.ca-search-row {
  display: flex;
  gap: 10px;
}

.ca-search-box {
  position: relative;
  flex: 1;
}

.ca-search-box input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 40px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fff;
  box-sizing: border-box;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

/* FILTER BUTTON */
.ca-filter-toggle {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #23baa5;
  color: #fff;
  border: none;
}

/* 🔥 SEARCH BUTTON (SECOND ROW) */
.ca-search-apply {
  margin-top: 10px;
  width: 100%;
  height: 46px;
  border-radius: 12px;
  background: #23baa5;
  color: #fff;
  border: none;
  font-weight: 600;
}

/* DESKTOP HIDE */
@media (min-width: 769px) {
  .ca-search-apply {
    display: none;
  }
}
