/* Cidonija - home page category product blocks */
.cid-hc { margin: 10px 0 20px; clear: both; }
.cid-hc-section { margin: 0 0 26px; }
.cid-hc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 2px solid #07b321; }
.cid-hc-title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; }
.cid-hc-title a { color: #222; text-decoration: none; }
.cid-hc-title a:hover { color: #07b321; }
.cid-hc-all { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: #087522; border: 1px solid #087522; border-radius: 16px; padding: 3px 12px; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.cid-hc-all:hover, .cid-hc-all:focus { background: #087522; color: #fff; text-decoration: none; }

.cid-hc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.cid-hc-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #e6e6e6; border-radius: 8px; padding: 10px; transition: box-shadow .15s, border-color .15s; min-width: 0; }
.cid-hc-card:hover { border-color: #cfe9d3; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.cid-hc-badge { position: absolute; top: 8px; left: 8px; z-index: 1; background: #fff; color: #d20103; border: 1px solid #d20103; border-radius: 10px; font-size: 11px; font-weight: 700; padding: 0 6px; line-height: 18px; }
.cid-hc-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; margin-bottom: 8px; overflow: hidden; }
.cid-hc-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .2s; }
.cid-hc-card:hover .cid-hc-img img { transform: scale(1.04); }
.cid-hc-name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.35; min-height: calc(1.35em * 3); color: #333; font-weight: 600; text-decoration: none; margin-bottom: 8px; }
.cid-hc-name:hover { color: #337700; text-decoration: none; }
.cid-hc-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.cid-hc-price { line-height: 1.2; min-width: 0; }
.cid-hc-new { color: #d20103; font-weight: 700; font-size: 16px; white-space: nowrap; }
.cid-hc-old { color: #999; font-size: 12px; text-decoration: line-through; white-space: nowrap; }
.cid-hc-cart { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #07b321; color: #fff; font-size: 15px; line-height: 34px; padding: 0; text-align: center; cursor: pointer; transition: background .15s; }
.cid-hc-cart:hover, .cid-hc-cart:focus { background: #058a19; }

@media (max-width: 1199px) { .cid-hc-new { font-size: 15px; } }
@media (max-width: 991px) { .cid-hc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .cid-hc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cid-hc-card { padding: 8px; }
  .cid-hc-title { font-size: 17px; }
  .cid-hc-all { font-size: 12px; padding: 2px 10px; }
  .cid-hc-name { font-size: 12.5px; }
  .cid-hc-cart { width: 36px; height: 36px; line-height: 36px; font-size: 13px; }
}

.cid-hc a:focus-visible, .cid-hc button:focus-visible { outline: 2px solid #095b1c; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .cid-hc *, .cid-hc-card:hover .cid-hc-img img { transition: none; transform: none; }
}
