.cs-products {
  direction: rtl;
  color: #333;
  background: #f5f5f5 url("../images/product-pattern.png") repeat;
}
.cs-products-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 1170px;
  margin: auto;
  padding: 52px 15px 30px;
}
.cs-products-title {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
  min-height: 35px;
  color: #171717;
  font-size: 16px;
  font-weight: 700;
}
.cs-products-title svg { color: #008a78; }
.cs-products-title::after {
  content: "";
  height: 1px;
  background: #d4d6d4;
  flex: 1;
  margin-inline-start: 3px;
}
.cs-products-panel {
  background: #fff;
  padding: 5px;
  margin-bottom: 15px;
}
.cs-products-panel h3 {
  position: relative;
  text-align: center;
  margin: 0 0 18px;
  height: 17px;
  border-bottom: 2px solid #f1f2f1;
  font-size: 16px;
  color: #007868;
  line-height: 30px;
}
.cs-products-panel h3 span { position: relative; top: 4px; display: inline-block; padding: 0 18px; min-width: 20%; background: #fff; }
.cs-products-carousel { position: relative; }
.cs-product-track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0 17px;
  justify-content: center;
}
.cs-product-track li { width: 33.333%; max-width: 365px; min-width: 0; text-align: center; padding: 10px; box-sizing: border-box; }
.cs-product-track a { position: relative; display: block; color: #fff; text-decoration: none; }
.cs-product-track img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: contain;
  background: #fff;
  transition: filter .5s ease;
}
.cs-product-track a:hover img, .cs-product-track a:focus-visible img { filter: brightness(.4); }
.cs-product-track a span {
  display: block;
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  background: rgba(0, 0, 0, .6);
  color: white;
  text-align: center;
  font-size: 13px;
  line-height: 30px;
  font-weight: 400;
}
.cs-products-all { text-align: center; }
.cs-products-all a {
  display: inline-block;
  padding: 12px 25px;
  background: #007969;
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  border-radius: 5px;
}
.cs-products-all a:hover { background: #056657; }
.cs-product-prev, .cs-product-next { display: none; }
@media (min-width: 992px) and (max-width: 1199px) { .cs-products-wrap { max-width: 970px; } }
@media (min-width: 768px) and (max-width: 991px) { .cs-products-wrap { max-width: 750px; } }
@media (max-width: 767px) {
  .cs-products-wrap { padding-top: 24px; padding-bottom: 24px; }
  .cs-products-panel h3 { border-bottom: 0; height: 65px; margin-bottom: 18px; }
  .cs-products-panel h3 span { top: 16px; }
}
@media (max-width: 479px) {
  .cs-product-track { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 0; scroll-snap-type: x mandatory; touch-action: pan-x pan-y; }
  .cs-product-track::-webkit-scrollbar { display: none; }
  .cs-product-track li { flex: 0 0 50%; width: auto; scroll-snap-align: start; }
  .cs-products-carousel { padding: 0 14px; }
  .cs-product-prev:not([hidden]), .cs-product-next:not([hidden]) {
    display: grid;
    place-items: center;
    padding: 0;
    border: none;
    border-radius: 0;
    position: absolute;
    top: 8%;
    height: 83%;
    width: 13px;
    background: #078673;
    color: white;
    font: bold 21px/1 sans-serif;
    cursor: pointer;
    z-index: 1;
  }
  .cs-product-prev { right: 1px; }
  .cs-product-next { left: 1px; }
}
@media (prefers-reduced-motion: reduce) { .cs-product-track img { transition: none; } }
