.lmt-products-widget__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24%, 1fr));
  gap: 24px 1%;
}

.lmt-products-widget__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: initial;
  max-width: 350px;
}

.lmt-products-widget__thumb {
  width: 100%;
  overflow: hidden;
  height: auto;
  aspect-ratio: 1/1;
}

.lmt-products-widget__media {
  position: relative;
  width: 100%;
  height: 100%;
}

.lmt-products-widget__slides {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 100%;
}

.lmt-products-widget__slide {
  display: none;
  width: 100%;
}

.lmt-products-widget__slide.is-active {
  display: block;
}

.lmt-products-widget--ratio-horizontal .lmt-products-widget__thumb {
  aspect-ratio: 768 / 576;
  width: 100% !important;
  height: auto !important;
}

.lmt-products-widget--ratio-vertical .lmt-products-widget__thumb {
  aspect-ratio: 476 / 635;
  width: 100% !important;
  height: auto !important;
}

.lmt-products-widget--ratio-square .lmt-products-widget__thumb {
  aspect-ratio: 1 / 1;
  width: 100% !important;
  height: auto !important;
}

.lmt-products-widget__thumb:hover img {
  transform: scale(1.2);
}

.lmt-products-widget__thumb a,
.lmt-products-widget__thumb img {
  display: block;
  width: 100%;
  transform: scale(1);
  height: 100%;
  object-fit: contain;
}

.lmt-products-widget__image-link {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: inherit;
}

.lmt-products-widget__image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lmt-products-widget__lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lmt-products-widget__lightbox.is-open {
  display: flex;
}

.lmt-products-widget__lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 24, 0.82);
}

.lmt-products-widget__lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  padding: 18px;
}

.lmt-products-widget__lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: none !important;
  transition: none !important;
  animation: none !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  background: #ffffff;
}

.lmt-products-widget__lightbox img {
  transform: none !important;
}

.lmt-products-widget__lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #17324d;
  cursor: pointer;
  transform: translate(35%, -35%);
}

.lmt-products-widget__lightbox-close::before {
  content: "×";
  display: block;
  font-size: 30px;
  line-height: 42px;
  text-align: center;
}

.lmt-products-widget__short-description {
  color: #4d6478;
  line-height: 1.5;
  text-align: left;
  font-size: 14px;
}

.lmt-products-widget__short-description p {
  margin: 0;
}

.lmt-products-widget__short-description p:last-child {
  margin-bottom: 0;
}

.lmt-products-widget__gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  cursor: pointer;
  transform: translateY(-50%);
}

.lmt-products-widget__gallery-nav--prev {
  left: 10px;
}

.lmt-products-widget__gallery-nav--next {
  right: 10px;
}

.lmt-products-widget__gallery-nav--prev::before,
.lmt-products-widget__gallery-nav--next::before {
  display: block;
  font-size: 18px;
  line-height: 38px;
  text-align: center;
}

.lmt-products-widget__gallery-nav--prev::before {
  content: "‹";
}

.lmt-products-widget__gallery-nav--next::before {
  content: "›";
}

.lmt-products-widget__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 0;
  flex-wrap: nowrap;
  align-content: flex-start;
  justify-content: flex-start;
  align-items: stretch;
  gap: 20px;
}

.lmt-products-widget__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.lmt-products-widget__title a {
  color: #17324d;
  text-decoration: none;
  text-align: left;
  font-size: 1.333em;
}

.lmt-products-widget__title a:hover {
  color: #17324d;
}

.lmt-products-widget__attributes {
  margin: 0 0 0px;
  padding: 0;
  list-style: none;
}

.lmt-products-widget__attribute {
  margin-bottom: 0px;
  color: #4d6478;
  line-height: 1.2;
  text-align: left;
}

.lmt-products-widget__attribute-name {
  font-weight: 700;
  color: #17324d;
}

.lmt-products-widget__attribute-value {
  color: #4d6478;
}

.lmt-products-widget__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 16px 50px 14px;
  background: #1f8f4d;
  color: #ffffff;
  text-decoration: none;
  font-family: "Bebas Neue", cursive !important;
  font-size: 17px;
  line-height: 1;
}

.lmt-products-widget__button:hover {
  background: #000000;
  color: #ffffff;
}

.lmt-products-widget__pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.lmt-products-widget__page-link a,
.lmt-products-widget__page-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 10px 14px;
  border: 1px solid #dbe4ec;
  border-radius: 999px;
  background: #ffffff;
  color: #17324d;
  text-decoration: none;
}

.lmt-products-widget__page-link .current {
  background: #17324d;
  color: #ffffff;
  border-color: #17324d;
}

@media (max-width: 992px) {
  .lmt-products-widget__grid {
    grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
    gap: 24px 3%;
  }
}

@media (max-width: 769px) {
  .lmt-products-widget__grid {
    grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
    gap: 15px 3%;
  }
}
