/* PixelPuffin theme override for the Consobase homepage category listing.
 * Colors/fonts match the site's Elementor kit: dark #0C1113, blue #3590E4
 * accent, "Terminal-Grotesque" for headings, Roboto for body/cards. */

.cb-home {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 48px 20px 20px;
  font-family: "Roboto", sans-serif;
}

.elementor-shortcode .cb-home-search-open,
.cb-home-search-open {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 640px;
  height: 48px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: "Roboto", sans-serif;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.cb-home-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  background: #F9FBFC;
  border: 1px solid #0C1113;
  border-right: 0;
  border-radius: 4px 0 0 4px;
}

.cb-home-search-open-icon {
  display: flex;
  color: #54595F;
  flex-shrink: 0;
}

.cb-home-search-placeholder {
  color: #54595F;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cb-home-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  background: #3590E4;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 0 4px 4px 0;
}

.cb-home-search-open:hover .cb-home-search-field {
  border-color: #3590E4;
}

.cb-home-search-open:hover .cb-home-search-btn {
  background: #0C0271;
}

.cb-home-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 10px;
}

.cb-home-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid #E3E6E8;
  border-radius: 999px;
  background: #F9FBFC;
  color: #0C1113;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.cb-home-nav-item span {
  color: #7A7A7A;
  font-weight: 500;
}

.cb-home-nav-item:hover,
.cb-home-nav-all {
  border-color: #3590E4;
  color: #3590E4;
  background: #EAF4FC;
}

.cb-home-section {
  margin: 40px 0 10px;
}

.cb-home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.cb-home-title {
  margin: 0;
  font-family: "Terminal-Grotesque", "Roboto", sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: #0C1113;
}

.cb-home-more {
  color: #3590E4;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  text-decoration: none;
  white-space: nowrap;
}

.cb-home-more:hover {
  color: #0C0271;
  text-decoration: underline;
}

.cb-home-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.cb-home-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #E3E6E8;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  min-height: 100%;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.cb-home-card:hover {
  transform: translateY(-4px);
  border-color: #3590E4;
  box-shadow: 4px 4px 0px 0px #3590E4, 2px 2px 0px 0px #0C0271;
}

.cb-home-card-img {
  background: #F9FBFC;
  line-height: 0;
}

.cb-home-card-img img {
  width: 100%;
  height: auto;
  display: block;
}

.cb-home-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
}

.cb-home-card-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #0C1113;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.cb-home-card-price,
.cb-home-card-price .woocommerce-Price-amount {
  color: #3590E4;
  font-size: 16px;
  font-weight: 700;
}

.cb-home-cta {
  display: flex;
  justify-content: center;
  margin: 40px 0 8px;
}

.cb-home-cta-btn {
  display: inline-block;
  background: #3590E4;
  color: #F9FBFC;
  text-decoration: none;
  font-family: "Edit-Undo", "Roboto", sans-serif;
  font-weight: 100;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 16px 32px;
  border-radius: 4px;
  box-shadow: 4px 4px 0px 0px #3590E4, 2px 2px 0px 0px #0C0271;
  border-bottom: 2px solid #0C0271;
  border-right: 3px solid #0C0271;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.cb-home-cta-btn:hover {
  color: #F9FBFC;
  box-shadow: 4px 4px 0px 0px rgba(53, 144, 228, 0);
  border-right-color: transparent;
  border-bottom-color: transparent;
}

@media (max-width: 1024px) {
  .cb-home-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .cb-home {
    padding: 32px 15px 15px;
  }

  .cb-home-title {
    font-size: 22px;
  }

  .cb-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cb-home-search-open {
    max-width: none;
    height: 44px;
  }

  .cb-home-search-placeholder {
    font-size: 14px;
  }

  .cb-home-search-btn {
    padding: 0 16px;
    font-size: 14px;
  }
}
