/* =========================================================
   KATRELIFT - MODERNIZASYON DETAY
   Bu dosya yalnızca modernizasyon liste/detay geliştirmeleri içindir.
   Mevcut main.css / main-light.css düzenlerini ezmemek için ayrıdır.
   ========================================================= */

/* Liste kartlarını detay sayfasına bağlayan hafif ek stiller */
.katrelift-spare-product-card .katrelift-spare-product-media-link,
.katrelift-spare-product-card .katrelift-spare-product-title-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.katrelift-spare-product-card .katrelift-spare-product-title-link h3 {
  transition: color 0.25s ease;
}

.katrelift-spare-product-card .katrelift-spare-product-title-link:hover h3 {
  color: var(--ks-red, #ec2938);
}

.katrelift-spare-product-card .katrelift-spare-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 3;
  color: var(--ks-heading, #15181a);
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
}

.katrelift-spare-product-card .katrelift-spare-detail-link:hover {
  color: var(--ks-red, #ec2938);
}

.katrelift-spare-product-card .katrelift-spare-card-actions {
  position: relative;
  z-index: 3;
}

/* Detay sayfası */
.katrelift-modern-detail {
  background: #fff;
}

.katrelift-modern-detail .container {
  max-width: 1420px;
}

.katrelift-modern-detail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.katrelift-modern-detail-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #ec2938;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.katrelift-modern-detail-head h2 {
  margin: 0;
  max-width: 900px;
  color: #111315;
  font-size: clamp(27px, 3.06vw, 43px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.katrelift-modern-detail-code {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  color: #ec2938;
  background: rgba(236, 41, 56, 0.07);
  border: 1px solid rgba(236, 41, 56, 0.16);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.katrelift-modern-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(420px, 0.94fr);
  gap: 34px;
  align-items: start;
}

.katrelift-modern-gallery {
  min-width: 0;
}

.katrelift-modern-gallery-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e1e3e5;
  border-radius: 18px;
}

.katrelift-modern-gallery-stage > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.katrelift-modern-gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(236, 41, 56, 0.045),
      transparent 42%
    ),
    #f8f9f9;
}

.katrelift-modern-gallery-placeholder span {
  color: #c6c8ca;
  font-size: clamp(23px, 3.6vw, 49px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.katrelift-modern-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  color: #15181a;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #eceeef;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(15, 18, 20, 0.08);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.katrelift-modern-gallery-arrow:hover {
  color: #ec2938;
  border-color: rgba(236, 41, 56, 0.3);
  transform: translateY(-50%) scale(1.05);
}

.katrelift-modern-gallery-arrow.is-prev {
  left: 18px;
}
.katrelift-modern-gallery-arrow.is-next {
  right: 18px;
}

.katrelift-modern-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.katrelift-modern-gallery-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 7px;
  background: #fff;
  border: 1px solid #e2e4e6;
  border-radius: 11px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.katrelift-modern-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.katrelift-modern-gallery-thumb:hover,
.katrelift-modern-gallery-thumb.active {
  border-color: #ec2938;
  box-shadow: inset 0 0 0 1px #ec2938;
}

.katrelift-modern-spec-panel {
  min-width: 0;
  background: #f7f7f6;
  border: 1px solid #e1e3e3;
  border-radius: 16px;
  overflow: hidden;
}

.katrelift-modern-spec-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.katrelift-modern-spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #f7f7f6;
}

.katrelift-modern-spec-table th,
.katrelift-modern-spec-table td {
  border-right: 1px solid #dedfdf;
  border-bottom: 1px solid #dedfdf;
  padding: 20px 18px;
  color: #222629;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
  vertical-align: middle;
}

.katrelift-modern-spec-table th:last-child,
.katrelift-modern-spec-table td:last-child {
  border-right: 0;
}

.katrelift-modern-spec-table thead th {
  height: 86px;
  color: #141719;
  background: #f2f3f3;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.katrelift-modern-spec-table tbody tr:last-child td {
  border-bottom: 0;
}

.katrelift-modern-spec-table tbody tr.is-spacer td {
  height: 38px;
  padding: 0;
  background: #fbfbfb;
}

.katrelift-modern-spec-empty {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.katrelift-modern-spec-empty span {
  margin-bottom: 8px;
  color: #15181a;
  font-size: 14px;
  font-weight: 600;
}

.katrelift-modern-spec-empty p {
  margin: 0;
  color: #838789;
  font-size: 13px;
  line-height: 1.7;
}

.katrelift-modern-detail-pdf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  color: #fff;
  background: #ec2938;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.katrelift-modern-detail-pdf:hover {
  color: #fff;
  background: #17191b;
}

[dir="rtl"] .katrelift-modern-detail,
[dir="rtl"] .katrelift-modern-detail-head {
  text-align: right;
}

@media (max-width: 1199px) {
  .katrelift-modern-detail-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.9fr);
    gap: 24px;
  }
}

@media (max-width: 991px) {
  .katrelift-modern-detail-layout {
    grid-template-columns: 1fr;
  }

  .katrelift-modern-spec-panel {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .katrelift-modern-detail-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 24px;
  }

  .katrelift-modern-gallery-stage {
    border-radius: 13px;
  }

  .katrelift-modern-gallery-arrow {
    width: 42px;
    height: 42px;
  }

  .katrelift-modern-gallery-arrow.is-prev {
    left: 10px;
  }
  .katrelift-modern-gallery-arrow.is-next {
    right: 10px;
  }

  .katrelift-modern-gallery-thumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .katrelift-modern-spec-table th,
  .katrelift-modern-spec-table td {
    padding: 16px 13px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .katrelift-modern-gallery-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* =========================================================
   V4 - KOMPAKT MODERNIZASYON GORSEL / TABLO DUZENI
   1000x1000 kaynak gorseller korunur; ekranda katalog tipi,
   daha dengeli ve kompakt gorunur.
   ========================================================= */

/* Modernizasyon liste kartlarinda urun gorselini daha kontrollu tut */
.katrelift-spare-page .katrelift-spare-product-media {
  height: 248px;
  padding: 22px;
}

.katrelift-spare-page .katrelift-spare-product-media img {
  width: auto;
  height: auto;
  max-width: 84%;
  max-height: 150%;
  object-fit: contain;
  object-position: center;
}

/* Detay alani: Liftkeys benzeri daha kompakt galeri + daha genis tablo */
.katrelift-modern-detail .container {
  max-width: 1280px;
}

.katrelift-modern-detail-head {
  margin-bottom: 26px;
}

.katrelift-modern-detail-head h2 {
  max-width: 820px;
  font-size: clamp(25px, 2.52vw, 38px);
}

.katrelift-modern-detail-layout {
  grid-template-columns: minmax(0, 1.22fr) minmax(455px, 0.92fr);
  gap: 28px;
}

.katrelift-modern-gallery-stage {
  height: 480px;
  aspect-ratio: auto;
  border-radius: 13px;
}

.katrelift-modern-gallery-stage > img {
  width: 84%;
  height: 84%;
  max-width: 620px;
  max-height: 420px;
  object-fit: contain;
}

.katrelift-modern-gallery-arrow {
  width: 42px;
  height: 42px;
}

.katrelift-modern-gallery-arrow.is-prev {
  left: 16px;
}
.katrelift-modern-gallery-arrow.is-next {
  right: 16px;
}

.katrelift-modern-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: none;
  gap: 10px;
  margin-top: 12px;
}

.katrelift-modern-gallery-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  aspect-ratio: auto;
  padding: 6px;
  border-radius: 10px;
}

.katrelift-modern-spec-panel {
  border-radius: 13px;
}

.katrelift-modern-spec-table th,
.katrelift-modern-spec-table td {
  padding: 13px 12px;
  font-size: 11.5px;
  line-height: 1.45;
}

.katrelift-modern-spec-table thead th {
  height: 64px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 10.5px;
}

.katrelift-modern-spec-table tbody tr.is-spacer td {
  height: 24px;
}

.katrelift-modern-spec-empty {
  min-height: 210px;
  padding: 28px;
}

@media (max-width: 1199px) {
  .katrelift-modern-detail-layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.9fr);
    gap: 22px;
  }

  .katrelift-modern-gallery-stage {
    height: 440px;
  }

  .katrelift-modern-gallery-stage > img {
    max-height: 385px;
  }
}

@media (max-width: 991px) {
  .katrelift-modern-detail-layout {
    grid-template-columns: 1fr;
  }

  .katrelift-modern-gallery {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
  }

  .katrelift-modern-gallery-stage {
    height: min(72vw, 500px);
  }

  .katrelift-modern-spec-panel {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .katrelift-spare-page .katrelift-spare-product-media {
    height: 220px;
    padding: 18px;
  }

  .katrelift-spare-page .katrelift-spare-product-media img {
    max-height: 325px;
  }

  .katrelift-modern-gallery-stage {
    height: min(86vw, 420px);
  }

  .katrelift-modern-gallery-stage > img {
    width: 88%;
    height: 88%;
  }

  .katrelift-modern-gallery-thumb {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }

  .katrelift-modern-spec-table th,
  .katrelift-modern-spec-table td {
    padding: 11px 10px;
    font-size: 11px;
  }
}

/* =========================================================
   V5 - DETAY METNI + TAM GENISLIK ILGILI URUNLER
   ========================================================= */
.katrelift-modern-detail-text {
  color: #4d5154;
  background: #fff;
  border-bottom: 1px solid #dedfdf;
  font-size: 13px;
  line-height: 1.7;
}

.katrelift-modern-detail-text-after {
  border-top: 1px solid #dedfdf;
  border-bottom: 0;
}

.katrelift-modern-related {
  background: #fff;
}

.katrelift-modern-related .container {
  max-width: 1280px;
}

.katrelift-modern-related-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.katrelift-modern-related-head h2 {
  margin: 0;
  color: #111315;
  font-size: clamp(22px, 2.7vw, 23px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.katrelift-modern-related-nav {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.katrelift-modern-related-arrow {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e4e5;
  border-radius: 50%;
  background: #fff;
  color: #17191b;
  transition: 0.2s ease;
}

.katrelift-modern-related-arrow:hover {
  color: #ec2938;
  border-color: rgba(236, 41, 56, 0.35);
}

.katrelift-modern-related-card {
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e1e3e5;
  border-radius: 13px;
}

.katrelift-modern-related-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  padding: 18px;
  background: #fff;
  border-bottom: 1px solid #eceeef;
}

.katrelift-modern-related-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.katrelift-modern-related-content {
  padding: 17px 18px 18px;
}

.katrelift-modern-related-content > span {
  display: block;
  margin-bottom: 7px;
  color: #ec2938;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.katrelift-modern-related-content h3 {
  min-height: 48px;
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.katrelift-modern-related-content h3 a {
  color: #151719;
  text-decoration: none;
}

.katrelift-modern-related-content h3 a:hover,
.katrelift-modern-related-link:hover {
  color: #ec2938;
}

.katrelift-modern-related-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #151719;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 991px) {
  .katrelift-modern-related-head {
    align-items: flex-start;
  }
}

@media (max-width: 575px) {
  .katrelift-modern-related-head {
    flex-direction: column;
    margin-bottom: 20px;
  }

  .katrelift-modern-related-nav {
    align-self: flex-end;
  }

  .katrelift-modern-related-media {
    height: 175px;
  }
}

/* =========================================================
   V6 - KOMPAKT MODERNIZASYON KATALOGU / DETAY
   ========================================================= */
.katrelift-spare-page .katrelift-spare-grid {
  row-gap: 18px;
}
.katrelift-spare-page .katrelift-spare-product-card {
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
}
.katrelift-spare-page .katrelift-spare-product-media {
  height: 168px;
  min-height: 168px;
  padding: 16px;
}
.katrelift-spare-page .katrelift-spare-product-media img {
  max-width: 90%;
  max-height: 165px;
}
.katrelift-spare-page .katrelift-spare-product-tag {
  top: 12px;
  right: 12px;
  padding: 7px 9px;
  font-size: 9px;
}
.katrelift-spare-page .katrelift-spare-product-content {
  padding: 16px 17px 17px;
}
.katrelift-spare-page .katrelift-spare-product-content small {
  font-size: 9px;
  margin-bottom: 7px;
}
.katrelift-spare-page .katrelift-spare-product-title-link h3 {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.16;
  min-height: 44px;
}
.katrelift-spare-page .katrelift-spare-product-content p {
  margin-bottom: 13px;
  font-size: 11.5px;
  line-height: 1.55;
  min-height: 36px;
}
.katrelift-spare-page .katrelift-spare-card-actions {
  margin-top: 8px;
}
.katrelift-spare-page .katrelift-spare-pdf-btn {
  padding: 6px 9px;
  font-size: 10px;
}
.katrelift-modern-detail .container {
  max-width: 1240px;
}
.katrelift-modern-detail-layout {
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
  gap: 24px;
}
.katrelift-modern-gallery-stage {
  height: 420px;
  border-radius: 13px;
}
.katrelift-modern-gallery-stage > img {
  width: 78%;
  height: 78%;
  max-width: 500px;
  max-height: 360px;
}
.katrelift-modern-gallery-thumbs {
  gap: 8px;
  margin-top: 10px;
}
.katrelift-modern-gallery-thumb {
  flex-basis: 64px;
  width: 64px;
  height: 64px;
  padding: 5px;
}
.katrelift-modern-spec-panel {
  border-radius: 12px;
}
.katrelift-modern-spec-table th,
.katrelift-modern-spec-table td {
  padding: 10px 11px;
  font-size: 11px;
  line-height: 1.4;
}
.katrelift-modern-spec-table thead th {
  height: 54px;
  padding: 10px 11px;
  font-size: 10px;
}
.katrelift-modern-spec-table tbody tr.is-spacer td {
  height: 18px;
}
.katrelift-modern-detail-text {
  font-size: 12px;
  line-height: 1.65;
}
@media (max-width: 1199px) {
  .katrelift-spare-page .katrelift-spare-product-media {
    height: 158px;
    min-height: 158px;
  }
  .katrelift-spare-page .katrelift-spare-product-title-link h3 {
    font-size: 16px;
  }
  .katrelift-modern-detail-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  }
  .katrelift-modern-gallery-stage {
    height: 390px;
  }
}
@media (max-width: 991px) {
  .katrelift-spare-page .katrelift-spare-product-media {
    height: 175px;
    min-height: 175px;
  }
  .katrelift-modern-detail-layout {
    grid-template-columns: 1fr;
  }
  .katrelift-modern-gallery {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
  }
  .katrelift-modern-gallery-stage {
    height: min(68vw, 430px);
  }
  .katrelift-modern-spec-panel {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
  }
}
@media (max-width: 767px) {
  .katrelift-spare-page .katrelift-spare-product-media {
    height: 190px;
    min-height: 190px;
  }
  .katrelift-spare-page .katrelift-spare-product-content {
    padding: 14px 15px 15px;
  }
  .katrelift-spare-page .katrelift-spare-product-title-link h3 {
    font-size: 16px;
  }
  .katrelift-modern-gallery-stage {
    height: min(86vw, 390px);
  }
}

/* ============================================================
   V7 FIX - Modernizasyon detay
   1) İlgili ürün bağlantıları site alt dizinini korur.
   2) Açıklama her zaman teknik tablonun ÜSTÜNDE ayrı blokta gösterilir.
   ============================================================ */

.katrelift-modern-detail-page .katrelift-modern-spec-panel {
  display: flex;
  flex-direction: column;
}

.katrelift-modern-detail-page .katrelift-modern-detail-text {
  order: 1;
  display: block;
  width: 100%;
  margin: 0 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5f646b;
  font-size: 13px;
  line-height: 1.75;
  box-shadow: none;
}

.katrelift-modern-detail-page .katrelift-modern-spec-scroll {
  order: 2;
  width: 100%;
}

.katrelift-modern-detail-page .katrelift-modern-detail-pdf {
  order: 3;
}

[dir="rtl"] .katrelift-modern-detail-page .katrelift-modern-detail-text {
  padding-left: 0;
  padding-right: 14px;
  border-left: 0;
  border-right: 3px solid #ef273d;
}

@media (max-width: 767px) {
  .katrelift-modern-detail-page .katrelift-modern-detail-text {
    margin-bottom: 14px;
    padding-left: 11px;
    font-size: 13px;
  }

  [dir="rtl"] .katrelift-modern-detail-page .katrelift-modern-detail-text {
    padding-left: 0;
    padding-right: 11px;
  }
}

/* ============================================================
   V8 FIX - Açıklama teknik tablodan bağımsız içerik alanıdır.
   Konum PHP tarafında DOM sırası ile belirlenir: üst / alt.
   ============================================================ */
.katrelift-modern-detail-page .katrelift-modern-detail-right {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.katrelift-modern-detail-page .katrelift-modern-detail-text {
  order: 0;
  width: 100%;
  margin: 0;
  color: #4f555a;
  background: #fff;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.75;
  box-shadow: none;
}

.katrelift-modern-detail-page .katrelift-modern-detail-text.is-after-table {
  margin-top: 0;
}

.katrelift-modern-detail-page .katrelift-modern-detail-text h2,
.katrelift-modern-detail-page .katrelift-modern-detail-text h3,
.katrelift-modern-detail-page .katrelift-modern-detail-text h4,
.katrelift-modern-detail-page .katrelift-modern-detail-text h5,
.katrelift-modern-detail-page .katrelift-modern-detail-text h6 {
  margin: 0 0 12px;
  color: #15181a;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.katrelift-modern-detail-page .katrelift-modern-detail-text h2 {
  font-size: clamp(22px, 1.8vw, 29px);
}
.katrelift-modern-detail-page .katrelift-modern-detail-text h3 {
  font-size: 20px;
}
.katrelift-modern-detail-page .katrelift-modern-detail-text h4 {
  font-size: 16px;
}

.katrelift-modern-detail-page .katrelift-modern-detail-text p {
  margin: 0 0 12px;
}

.katrelift-modern-detail-page .katrelift-modern-detail-text p:last-child,
.katrelift-modern-detail-page .katrelift-modern-detail-text ul:last-child,
.katrelift-modern-detail-page .katrelift-modern-detail-text ol:last-child,
.katrelift-modern-detail-page
  .katrelift-modern-detail-text
  blockquote:last-child {
  margin-bottom: 0;
}

.katrelift-modern-detail-page .katrelift-modern-detail-text ul,
.katrelift-modern-detail-page .katrelift-modern-detail-text ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.katrelift-modern-detail-page .katrelift-modern-detail-text blockquote {
  margin: 0 0 14px;
  padding: 10px 14px;
  background: #f7f7f6;
  border-left: 3px solid #d9dcde;
}

.katrelift-modern-detail-page .katrelift-modern-detail-text a {
  color: #ef273d;
  text-decoration: underline;
}

/* Eski V7 flex-order kurallarını etkisizleştir: açıklama artık tablo panelinin içinde değil. */
.katrelift-modern-detail-page .katrelift-modern-spec-scroll,
.katrelift-modern-detail-page .katrelift-modern-detail-pdf {
  order: 0;
}

[dir="rtl"] .katrelift-modern-detail-page .katrelift-modern-detail-text {
  padding-left: 22px;
  padding-right: 22px;
  border-left: 1px solid #e1e3e3;
  border-right: 3px solid #ef273d;
}

[dir="rtl"] .katrelift-modern-detail-page .katrelift-modern-detail-text ul,
[dir="rtl"] .katrelift-modern-detail-page .katrelift-modern-detail-text ol {
  padding-left: 0;
  padding-right: 22px;
}

@media (max-width: 991px) {
  .katrelift-modern-detail-page .katrelift-modern-detail-right {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
  }

  .katrelift-modern-detail-page .katrelift-modern-spec-panel {
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 767px) {
  .katrelift-modern-detail-page .katrelift-modern-detail-right {
    gap: 12px;
  }

  .katrelift-modern-detail-page .katrelift-modern-detail-text,
  [dir="rtl"] .katrelift-modern-detail-page .katrelift-modern-detail-text {
    margin: 0;
    padding: 16px 17px;
    font-size: 13px;
  }
}

/* ============================================================
   V10 - MODERNIZASYON DETAY YENI AKIS
   Üstte: SOL galeri + SAG teknik tablo
   Altta: tam genislik detay metni
   Sticky/pin davranışı yoktur.
   ============================================================ */

.katrelift-modern-detail-page .katrelift-modern-detail-layout {
  align-items: start;
}

.katrelift-modern-detail-page .katrelift-modern-gallery,
.katrelift-modern-detail-page .katrelift-modern-detail-right {
  position: static;
  top: auto;
  align-self: start;
}

.katrelift-modern-detail-page .katrelift-modern-detail-right {
  display: block;
  min-width: 0;
}

.katrelift-modern-detail-page .katrelift-modern-spec-panel {
  width: 100%;
  margin: 0;
}

/* Uzun açıklama artık görsel + teknik tablonun TAM ALTINDADIR. */
.katrelift-modern-detail-page .katrelift-modern-detail-content {
  width: 100%;
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid #e6e7e8;
  color: #4f555a;
  font-size: 14px;
  line-height: 1.82;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content p {
  max-width: 1120px;
  margin: 0 0 18px;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content h2,
.katrelift-modern-detail-page .katrelift-modern-detail-content h3,
.katrelift-modern-detail-page .katrelift-modern-detail-content h4,
.katrelift-modern-detail-page .katrelift-modern-detail-content h5,
.katrelift-modern-detail-page .katrelift-modern-detail-content h6 {
  max-width: 1120px;
  margin: 30px 0 14px;
  color: #15181a;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content h2:first-child,
.katrelift-modern-detail-page .katrelift-modern-detail-content h3:first-child,
.katrelift-modern-detail-page .katrelift-modern-detail-content h4:first-child {
  margin-top: 0;
}

/* İçerikte gereksiz dev başlık etkisini azalt. */
.katrelift-modern-detail-page .katrelift-modern-detail-content h2 {
  font-size: clamp(22px, 1.8vw, 27px);
}

.katrelift-modern-detail-page .katrelift-modern-detail-content h3 {
  font-size: 18px;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content h4 {
  font-size: 15px;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content ul,
.katrelift-modern-detail-page .katrelift-modern-detail-content ol {
  max-width: 1120px;
  margin: 0 0 20px;
  padding-left: 22px;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content li {
  margin-bottom: 7px;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content blockquote {
  max-width: 1120px;
  margin: 0 0 20px;
  padding: 13px 16px;
  background: #f7f7f6;
  border-left: 3px solid #d9dcde;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content a {
  color: #ef273d;
  text-decoration: underline;
}

[dir="rtl"] .katrelift-modern-detail-page .katrelift-modern-detail-content ul,
[dir="rtl"] .katrelift-modern-detail-page .katrelift-modern-detail-content ol {
  padding-left: 0;
  padding-right: 22px;
}

[dir="rtl"] .katrelift-modern-detail-page .katrelift-modern-detail-content blockquote {
  border-left: 0;
  border-right: 3px solid #d9dcde;
}

@media (max-width: 991px) {
  .katrelift-modern-detail-page .katrelift-modern-detail-content {
    margin-top: 30px;
    padding-top: 24px;
  }
}

@media (max-width: 767px) {
  .katrelift-modern-detail-page .katrelift-modern-detail-content {
    margin-top: 24px;
    padding-top: 20px;
    font-size: 13px;
    line-height: 1.75;
  }

  .katrelift-modern-detail-page .katrelift-modern-detail-content h2 {
    font-size: 21px;
  }

  .katrelift-modern-detail-page .katrelift-modern-detail-content h3 {
    font-size: 17px;
  }
}


/* ============================================================
   V11 - DETAY ICERIGI OKUNABILIR / EDITORYAL DUZEN
   Görsel + tablo üstte kalır. Uzun ürün metni altta daha rahat
   okunacak satır uzunluğu, boşluk ve tipografi ile gösterilir.
   ============================================================ */

.katrelift-modern-detail-page .katrelift-modern-detail-content {
  position: relative;
  max-width: 1080px;
  margin: 52px auto 0;
  padding: 42px 48px 46px;
  border: 1px solid #eceeef;
  border-radius: 18px;
  background: #fbfbfa;
  color: #5b6166;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0;
}

/* İçeriğin başlangıcında küçük, sade bir marka vurgusu. */
.katrelift-modern-detail-page .katrelift-modern-detail-content::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: #ef273d;
}

/* Çok uzun satırları engelle: okuma sırasında göz satırı kaybetmesin. */
.katrelift-modern-detail-page .katrelift-modern-detail-content p,
.katrelift-modern-detail-page .katrelift-modern-detail-content h2,
.katrelift-modern-detail-page .katrelift-modern-detail-content h3,
.katrelift-modern-detail-page .katrelift-modern-detail-content h4,
.katrelift-modern-detail-page .katrelift-modern-detail-content h5,
.katrelift-modern-detail-page .katrelift-modern-detail-content h6,
.katrelift-modern-detail-page .katrelift-modern-detail-content ul,
.katrelift-modern-detail-page .katrelift-modern-detail-content ol,
.katrelift-modern-detail-page .katrelift-modern-detail-content blockquote {
  max-width: 880px;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content p {
  margin: 0 0 22px;
  color: #60666b;
  font-size: 14px;
  line-height: 1.92;
  font-weight: 400;
  text-wrap: pretty;
}

/* İlk paragraf giriş metni gibi, fakat abartısız. */
.katrelift-modern-detail-page .katrelift-modern-detail-content p:first-of-type {
  margin-bottom: 28px;
  color: #353a3e;
  font-size: 14px;
  line-height: 1.9;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content h2,
.katrelift-modern-detail-page .katrelift-modern-detail-content h3,
.katrelift-modern-detail-page .katrelift-modern-detail-content h4,
.katrelift-modern-detail-page .katrelift-modern-detail-content h5,
.katrelift-modern-detail-page .katrelift-modern-detail-content h6 {
  margin: 40px 0 14px;
  color: #171a1c;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content h2:first-child,
.katrelift-modern-detail-page .katrelift-modern-detail-content h3:first-child,
.katrelift-modern-detail-page .katrelift-modern-detail-content h4:first-child {
  margin-top: 0;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content h2 {
  font-size: clamp(22px, 1.8vw, 25px);
}

.katrelift-modern-detail-page .katrelift-modern-detail-content h3 {
  position: relative;
  padding-left: 14px;
  font-size: 17px;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content h3::before {
  content: "";
  position: absolute;
  top: 0.18em;
  bottom: 0.14em;
  left: 0;
  width: 2px;
  border-radius: 999px;
  background: #ef273d;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content h4 {
  font-size: 15px;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content strong,
.katrelift-modern-detail-page .katrelift-modern-detail-content b {
  color: #2d3236;
  font-weight: 500;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content ul,
.katrelift-modern-detail-page .katrelift-modern-detail-content ol {
  margin: 2px 0 24px;
  padding-left: 24px;
  color: #5b6166;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content li {
  margin-bottom: 9px;
  padding-left: 4px;
  line-height: 1.8;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content blockquote {
  margin: 28px 0;
  padding: 18px 20px;
  color: #444a4f;
  background: #fff;
  border: 1px solid #e8eaec;
  border-left: 3px solid #ef273d;
  border-radius: 0 10px 10px 0;
  line-height: 1.8;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content a {
  color: #df2035;
  font-weight: 400;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

[dir="rtl"] .katrelift-modern-detail-page .katrelift-modern-detail-content h3 {
  padding-left: 0;
  padding-right: 14px;
}

[dir="rtl"] .katrelift-modern-detail-page .katrelift-modern-detail-content h3::before {
  right: 0;
  left: auto;
}

[dir="rtl"] .katrelift-modern-detail-page .katrelift-modern-detail-content blockquote {
  border-left: 1px solid #e8eaec;
  border-right: 3px solid #ef273d;
  border-radius: 10px 0 0 10px;
}

@media (max-width: 991px) {
  .katrelift-modern-detail-page .katrelift-modern-detail-content {
    margin-top: 38px;
    padding: 34px 34px 38px;
  }
}

@media (max-width: 767px) {
  .katrelift-modern-detail-page .katrelift-modern-detail-content {
    margin-top: 28px;
    padding: 26px 20px 30px;
    border-radius: 14px;
    font-size: 13px;
  }

  .katrelift-modern-detail-page .katrelift-modern-detail-content::before {
    margin-bottom: 20px;
  }

  .katrelift-modern-detail-page .katrelift-modern-detail-content p,
  .katrelift-modern-detail-page .katrelift-modern-detail-content p:first-of-type {
    font-size: 13px;
    line-height: 1.82;
  }

  .katrelift-modern-detail-page .katrelift-modern-detail-content h2 {
    font-size: 21px;
  }

  .katrelift-modern-detail-page .katrelift-modern-detail-content h3 {
    margin-top: 32px;
    font-size: 16px;
  }
}

/* ============================================================
   V12 - SADE / GENIS DETAY ICERIGI
   Kullanici geri bildirimi:
   - Kutu/border yok
   - Kirmizi ust cizgi yok
   - Baslik yaninda kirmizi serit yok
   - Metin alani container genisligini daha iyi kullaniyor
   - Tipografi ince, ferah ve sade kalir
   ============================================================ */

.katrelift-modern-detail-page .katrelift-modern-detail-content {
  max-width: none;
  width: 100%;
  margin: 48px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #5d6266;
  font-size: 13px;
  line-height: 1.88;
}

/* Ustteki kirmizi dekoratif cizgiyi kaldir. */
.katrelift-modern-detail-page .katrelift-modern-detail-content::before {
  content: none;
  display: none;
}

/* Metin artik sag taraftaki boslugu da kullanir. */
.katrelift-modern-detail-page .katrelift-modern-detail-content p,
.katrelift-modern-detail-page .katrelift-modern-detail-content h2,
.katrelift-modern-detail-page .katrelift-modern-detail-content h3,
.katrelift-modern-detail-page .katrelift-modern-detail-content h4,
.katrelift-modern-detail-page .katrelift-modern-detail-content h5,
.katrelift-modern-detail-page .katrelift-modern-detail-content h6,
.katrelift-modern-detail-page .katrelift-modern-detail-content ul,
.katrelift-modern-detail-page .katrelift-modern-detail-content ol,
.katrelift-modern-detail-page .katrelift-modern-detail-content blockquote {
  max-width: none;
  width: 100%;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content p {
  margin: 0 0 20px;
  color: #5d6266;
  font-size: 13px;
  line-height: 1.88;
  font-weight: 400;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content p:first-of-type {
  margin-bottom: 22px;
  color: #42474b;
  font-size: 13px;
  line-height: 1.88;
  font-weight: 400;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content h2,
.katrelift-modern-detail-page .katrelift-modern-detail-content h3,
.katrelift-modern-detail-page .katrelift-modern-detail-content h4,
.katrelift-modern-detail-page .katrelift-modern-detail-content h5,
.katrelift-modern-detail-page .katrelift-modern-detail-content h6 {
  margin: 34px 0 12px;
  padding: 0;
  color: #202427;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content h2 {
  font-size: clamp(20px, 1.53vw, 24px);
}

.katrelift-modern-detail-page .katrelift-modern-detail-content h3 {
  position: static;
  font-size: 16px;
}

/* Alt basliklardaki kirmizi dikey seridi kaldir. */
.katrelift-modern-detail-page .katrelift-modern-detail-content h3::before {
  content: none;
  display: none;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content h4 {
  font-size: 14px;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content strong,
.katrelift-modern-detail-page .katrelift-modern-detail-content b {
  color: #2f3437;
  font-weight: 550;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content ul,
.katrelift-modern-detail-page .katrelift-modern-detail-content ol {
  margin: 4px 0 22px;
  padding-left: 22px;
}

.katrelift-modern-detail-page .katrelift-modern-detail-content li {
  margin-bottom: 7px;
  line-height: 1.78;
}

/* Alinti kullanilirsa da kutu/border olmasin. */
.katrelift-modern-detail-page .katrelift-modern-detail-content blockquote,
[dir="rtl"] .katrelift-modern-detail-page .katrelift-modern-detail-content blockquote {
  margin: 24px 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #4d5357;
  font-style: italic;
  line-height: 1.85;
}

[dir="rtl"] .katrelift-modern-detail-page .katrelift-modern-detail-content h3 {
  padding: 0;
}

@media (max-width: 991px) {
  .katrelift-modern-detail-page .katrelift-modern-detail-content {
    margin-top: 36px;
    padding: 0;
  }
}

@media (max-width: 767px) {
  .katrelift-modern-detail-page .katrelift-modern-detail-content {
    margin-top: 28px;
    padding: 0;
    border-radius: 0;
    font-size: 12px;
    line-height: 1.82;
  }

  .katrelift-modern-detail-page .katrelift-modern-detail-content p,
  .katrelift-modern-detail-page .katrelift-modern-detail-content p:first-of-type {
    font-size: 12px;
    line-height: 1.82;
  }

  .katrelift-modern-detail-page .katrelift-modern-detail-content h2 {
    font-size: 19px;
  }

  .katrelift-modern-detail-page .katrelift-modern-detail-content h3 {
    margin-top: 28px;
    font-size: 15px;
  }
}




/* ============================================================
   MODERNIZASYON V2
   - Standart slider: görünür pagination noktası yok.
   - Katalog kartı: kısa açıklama 70-80 karakter seviyesinde.
   - Ana kategori > alt bileşen hover/dropdown filtresi.
   ============================================================ */
.katrelift-standard-slider {
    width: 100%;
    overflow: hidden;
    padding-bottom: 0;
}

.katrelift-standard-slider .swiper-wrapper {
    align-items: stretch;
}

.katrelift-standard-slider .swiper-slide {
    height: auto;
}

.katrelift-standard-slide .row > [class*="col-"] {
    display: flex;
}

.katrelift-standard-slide .katrelift-spare-group-card {
    width: 100%;
    height: 100%;
}

/* Kart açıklaması: PHP zaten 78 karaktere kısaltıyor.
   CSS ayrıca kötü taşmaları engeller. */
.katrelift-spare-page .katrelift-spare-product-content p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    min-height: 0;
    max-height: calc(1.55em * 3);
}

/* Filtre grubu */
.katrelift-spare-filter-list {
    align-items: center;
    overflow: visible;
}

.katrelift-spare-filter-group {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/*
 * Parent filtreden alt menüye inerken arada oluşan küçük boşluğu
 * görünmez bir hover köprüsüyle kapatır. Böylece menü kapanmadan
 * alt bileşenlere rahatça gidilip tıklanabilir.
 */
.katrelift-spare-filter-group::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 79;
    width: 100%;
    height: 10px;
    pointer-events: auto;
}

.katrelift-spare-parent-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}


/* Alt bileşen açılır menüsü */
.katrelift-spare-submenu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    z-index: 80;
    display: none;
    width: max-content;
    min-width: 235px;
    max-width: 330px;
    max-height: 380px;
    overflow-y: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid #e5e7e8;
    border-radius: 13px;
    box-shadow: 0 18px 45px rgba(20, 24, 28, .12);
}

.katrelift-spare-filter-group.open > .katrelift-spare-submenu {
    display: block;
}

.katrelift-spare-filter-list .katrelift-spare-submenu button {
    display: block;
    width: 100%;
    min-height: 36px;
    padding: 8px 11px;
    color: #555a5e;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
    text-align: left;
    white-space: normal;
    background: #fff;
    border: 0;
    border-radius: 9px;
}

.katrelift-spare-filter-list .katrelift-spare-submenu button:hover,
.katrelift-spare-filter-list .katrelift-spare-submenu button.active {
    color: #ec2938;
    background: rgba(236, 41, 56, .07);
    border-color: transparent;
}

html[dir="rtl"] .katrelift-spare-submenu {
    right: 0;
    left: auto;
}

html[dir="rtl"] .katrelift-spare-filter-list .katrelift-spare-submenu button {
    text-align: right;
}

@media (max-width: 1199px) {
    .katrelift-spare-filter-list {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .katrelift-spare-filter-group {
        display: block;
        width: 100%;
    }

    .katrelift-spare-filter-group::after {
        display: none;
    }

    .katrelift-spare-filter-group > .katrelift-spare-parent-filter {
        width: 100%;
    }

    .katrelift-spare-submenu {
        position: static;
        width: 100%;
        min-width: 0;
        max-width: none;
        max-height: 280px;
        margin-top: 6px;
        box-shadow: none;
        border-radius: 12px;
    }
}
