/* Otomasyonlar sayfası kartları — ürün listesi (ot-lkart) görünümüne uyarlandı. 2026-11-13 */
#cardsGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}
#cardsGrid::before, #cardsGrid::after { content: none; display: none; }
#cardsGrid > .htw-grid-item-wrapper {
  width: auto; max-width: none; flex: none; padding: 0;
}
#cardsGrid > .htw-grid-item-wrapper.htw-hidden { display: none; }

/* Kart */
#cardsGrid .htw-category-card {
  display: flex; flex-direction: column; justify-content: flex-start;
  height: 100%; margin: 0; padding: 12px;
  background: #fff;
  border: 1px solid #edf3f6;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(13, 80, 110, .06);
  font-family: var(--ot-govde-font, "Inter", system-ui, sans-serif);
  transition: transform .25s, box-shadow .25s;
}
#cardsGrid .htw-category-card:hover {
  transform: translateY(-5px);
  border-color: #edf3f6;
  box-shadow: 0 22px 44px rgba(13, 80, 110, .13);
}
#cardsGrid .htw-category-card > div:first-child { display: flex; flex-direction: column; flex: 1; }

/* Solda görsel, sağda başlık + fiyat */
#cardsGrid .htw-card-header-block {
  display: flex; align-items: center; gap: 14px;
  margin: 0; padding: 8px 8px 0;
}
#cardsGrid .htw-icon-box {
  display: block; flex: 0 0 112px; width: 112px; height: 104px;
  padding: 4px; box-sizing: border-box;
  border: 1.5px solid #d6d4cc; border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, #f2f1ed, #eae9e5);
}
#cardsGrid .htw-category-card:hover .htw-icon-box { background: linear-gradient(180deg, #f2f1ed, #eae9e5); border-color: #c4c1b7; }
#cardsGrid .htw-icon-box a { display: block; width: 100%; height: 100%; }
#cardsGrid .htw-icon-box img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}
#cardsGrid .htw-category-card:hover .htw-icon-box img { transform: scale(1.04); }
#cardsGrid .htw-card-header-block > div:last-child { flex: 1; min-width: 0; padding: 0; }

/* Başlık */
#cardsGrid .htw-card-title {
  margin: 0;
  font-family: var(--ot-baslik-font, "Lexend", sans-serif);
  font-size: 16.5px; font-weight: 600; line-height: 1.35;
  color: var(--ot-lacivert, #0f2733);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Fiyat (ot-paket-fiyat görünümü) */
#cardsGrid .htw-card-tag {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px;
  margin: 6px 0 0;
  font-size: 11.5px; font-weight: 600; color: #22a35b;
  text-transform: none; letter-spacing: 0;
}
#cardsGrid .htw-card-tag .yenifiyat {
  font-family: var(--ot-baslik-font, "Lexend", sans-serif);
  font-size: 22px; font-weight: 700; line-height: 1.1;
  color: var(--ot-lacivert, #0f2733);
  letter-spacing: -.02em; text-transform: none;
}
#cardsGrid .htw-card-tag .yenifiyat .fa { font-size: .8em; margin-left: 2px; }
#cardsGrid .htw-card-tag .eskifiyat,
#cardsGrid .htw-card-tag .eskifiyat font { font-size: 14px; font-weight: 400; color: #9aa9b3 !important; }

/* Açıklama */
#cardsGrid .htw-card-desc {
  margin: 14px 8px 0 !important; padding: 0;
  font-size: 13px; line-height: 1.55; color: var(--ot-gri, #7a8c97);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Özellik listesi — yeşil tikli */
#cardsGrid .htw-feature-list {
  list-style: none; margin: 14px 8px 18px; padding: 14px 0 0;
  border-top: 1px dashed var(--ot-cizgi, #e3edf2);
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px;
}
#cardsGrid .htw-feature-item {
  position: relative; display: block; margin: 0; padding-left: 22px;
  font-size: 13px; line-height: 1.4; color: var(--ot-yazi, #1c2e3a);
}
#cardsGrid .htw-feature-item [data-lucide] { display: none; }
#cardsGrid .htw-feature-item::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #e6f6ec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322a35b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* Butonlar (Demo / Sipariş Ver) */
#cardsGrid .htw-btn-wrapper {
  display: grid; grid-template-columns: 1fr 1.7fr; gap: 10px;
  margin-top: auto; padding: 0 8px 6px;
}
#cardsGrid .htw-btn-wrapper a {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; height: 44px; padding: 0 12px;
  border-radius: 12px; font-size: 13.5px; font-weight: 500;
  text-decoration: none; transition: transform .2s, box-shadow .2s, filter .2s;
}
#cardsGrid .htw-btn-wrapper [data-lucide] { display: none; }
#cardsGrid .htw-btn-shadcn-secondary {
  background: #fff; color: var(--ot-lacivert, #0f2733) !important;
  border: 1.5px solid #dbe6ec;
}
#cardsGrid .htw-btn-shadcn-secondary:hover { background: #f5f9fb; border-color: #c9d9e2; transform: translateY(-2px); }
#cardsGrid .htw-btn-shadcn-primary {
  background: var(--ot-gecis, linear-gradient(90deg, #0a5c86 0%, #0a7dab 50%, #06a2cf 100%));
  color: #fff !important; border: 0; opacity: 1;
  box-shadow: 0 3px 10px rgba(10, 115, 160, .16);
}
#cardsGrid .htw-btn-shadcn-primary::before {
  content: ""; width: 17px; height: 17px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='20.5' r='1.3'/%3E%3Ccircle cx='18' cy='20.5' r='1.3'/%3E%3Cpath d='M2 3h2.2l2.5 11.6a2 2 0 0 0 2 1.6h9a2 2 0 0 0 1.9-1.5L21.5 7H5.3'/%3E%3C/svg%3E") center / contain no-repeat;
}
#cardsGrid .htw-btn-shadcn-primary:hover { filter: brightness(1.06); transform: translateY(-2px); color: #fff !important; }

/* Duyarlı */
@media (max-width: 1199px) {
  #cardsGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  #cardsGrid { grid-template-columns: 1fr; gap: 16px; }
  #cardsGrid .htw-category-card:hover { transform: none; }
  #cardsGrid .htw-feature-list { grid-template-columns: 1fr; }
  #cardsGrid .htw-icon-box { flex-basis: 96px; width: 96px; height: 90px; }
  #cardsGrid .htw-card-title { font-size: 15px; }
  #cardsGrid .htw-card-tag .yenifiyat { font-size: 19px; }
}
