/* Fairline product modules — PC-style cards + Swiper on all viewports */
.fl-pm.swiper {
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.25rem;
}

.fl-pm.swiper.row {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  margin-left: 0;
  margin-right: 0;
  display: block;
}

.fl-pm .swiper-wrapper {
  align-items: stretch;
}

.fl-pm .swiper-slide,
.fl-pm .ds-module-item.swiper-slide {
  width: auto;
  height: auto;
  flex: 0 0 auto;
  max-width: none;
}

.fl-pm .ds-module-item .content-block {
  flex-direction: column !important;
  height: 100%;
  padding: 0.75rem;
}

.fl-pm .ds-module-item .ds-module-img {
  flex: none !important;
  width: 100%;
  padding-right: 0 !important;
  border-right: 0 !important;
  position: relative;
}

/* Stickers over image — no empty gap when missing */
.fl-pm .ds-module-img > .ds-module-stickers:not(.ds-module-sticker-images) {
  position: absolute;
  z-index: 3;
  left: 0.25rem;
  top: 0.25rem;
  right: auto;
  margin: 0;
  padding: 0;
  max-width: calc(100% - 2.5rem);
}

.fl-pm .ds-module-img > .ds-module-stickers:not(:has(.ds-module-sticker)) {
  display: none !important;
}

.fl-pm .ds-module-item .ds-module-img .ds-module-img-box {
  order: unset !important;
}

.fl-pm .ds-module-item .ds-module-img img {
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.fl-pm .ds-module-item .ds-module-caption {
  padding-left: 0 !important;
  padding-top: 0.5rem !important;
  flex-grow: 1;
}

.fl-pm .ds-module-item .ds-module-buttons {
  left: auto !important;
  right: 0 !important;
}

.fl-pm .ds-module-item .ds-module-sticker-images {
  position: static !important;
}

/* Same nav as .fl-hc-nav (home categories) */
.fl-pm-nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(200, 200, 200, 0.72);
  color: #fff;
  box-shadow: none;
  cursor: pointer;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.fl-pm-nav:hover,
.fl-pm-nav:focus {
  background: rgba(180, 180, 180, 0.88);
  outline: none;
}

.fl-pm-nav:active {
  background: rgba(160, 160, 160, 0.92);
}

.fl-pm-nav--prev {
  left: 10px;
}

.fl-pm-nav--next {
  right: 10px;
}

.fl-pm-nav__icon {
  display: block;
  width: 14px;
  height: 14px;
}

.fl-pm-nav.swiper-button-disabled {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (min-width: 768px) and (hover: hover) {
  .fl-pm-nav {
    opacity: 0;
    pointer-events: none;
  }

  .fl-pm:hover .fl-pm-nav:not(.swiper-button-disabled),
  .fl-pm:focus-within .fl-pm-nav:not(.swiper-button-disabled) {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 767.98px) {
  /* Same side strokes as category carousel — inset over cards */
  .fl-pm-nav {
    display: inline-flex;
    width: 16px;
    height: 70%;
    min-height: 52px;
    max-height: 78px;
    border-radius: 3px;
    background: rgba(180, 180, 180, 0.55);
    opacity: 1;
    pointer-events: auto;
  }

  .fl-pm-nav--prev {
    left: 8px;
  }

  .fl-pm-nav--next {
    right: 8px;
  }

  .fl-pm-nav:hover,
  .fl-pm-nav:focus {
    background: rgba(160, 160, 160, 0.72);
  }

  .fl-pm-nav__icon {
    width: 10px;
    height: 10px;
  }

  .fl-pm-nav.swiper-button-disabled {
    opacity: 0.35 !important;
    pointer-events: none !important;
  }

  .fl-pm .ds-module-item .content-block {
    padding: 0.625rem;
  }

  .fl-pm .ds-module-title {
    font-size: 0.8125rem;
  }

  .fl-pm .ds-price-new {
    font-size: 1rem !important;
  }
}
