#cnclibs {
  padding: 60px 0;
}

.manus-machines-heading {
  text-align: center;
  margin-bottom: 30px;
}

.manus-machines-heading h2 {
  font-size: 50px;
  margin: 0;
  color: #1c1c1c !important;
  text-align: center;
}

.manus-machines-wrapper {
  display: flex;
  gap: 24px;
  flex-wrap: nowrap;
  align-items: flex-start;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

/* Sidebar / Marka Listesi */
.manus-machines-tablist {
  flex: 0 0 260px;
  border: 1px solid #ececec !important;
  border-radius: 12px !important;
  padding: 12px 0;
  background: #fff !important;
  max-height: 70vh;
  overflow-y: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: #ff7200 #ffe6d1 !important;
}

.manus-machines-tablist::-webkit-scrollbar {
  width: 6px;
}

.manus-machines-tablist::-webkit-scrollbar-track {
  background: #ffe6d1 !important;
  border-radius: 999px;
}

.manus-machines-tablist::-webkit-scrollbar-thumb {
  background: #ff7200 !important;
  border-radius: 999px;
}

.manus-machines-tablink {
  display: block;
  width: 100%;
  padding: 12px 20px;
  cursor: pointer;
  color: #000 !important;
  border-left: 4px solid transparent;
  text-decoration: none;
  transition: all 0.2s ease;
  background: #fff !important;
  border: none;
  text-align: left;
  font: inherit;
  border-radius: 0;
}

.manus-machines-tablink:hover,
.manus-machines-tablink:focus-visible {
  background: #ffe6d1 !important;
  color: #d85d00 !important;
}

.manus-machines-tablink.active {
  border-left-color: #ff7200 !important;
  background: #ff7200 !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
}

/* İçerik Alanı */
.manus-machines-content {
  flex: 1;
  min-width: 0;
  border: 1px solid #ececec !important;
  border-radius: 12px;
  padding: 24px;
  background: #fff !important;
  overflow: hidden;
}

/* KAYDIRILABİLİR IZGARA YAPISI */
.manus-machines-grid {
  display: grid;
  grid-template-rows: repeat(3, min-content);
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  gap: 12px;

  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;

  /* Scrollbar'ı ÜSTE ALMA */
  transform: rotateX(180deg);

  scroll-behavior: auto !important;

  scrollbar-width: auto;
  scrollbar-color: #ff7200 #ffe6d1;
  align-items: start;

  /* SÜRÜKLEME İÇİN İMLEÇ */
  cursor: grab;
  user-select: none;
}

.manus-machines-grid.active {
  cursor: grabbing;
}

/* DÜZELTME: pointer-events: none kaldırıldı. */
.manus-machines-grid.active .manus-machine-card {
  /* Kartları büyütme efektini sürüklerken iptal et, ama tıklamaya engel olma */
  transform: rotateX(180deg) scale(1) !important;
}

.manus-machines-grid::-webkit-scrollbar {
  height: 16px;
}

.manus-machines-grid::-webkit-scrollbar-track {
  background: #ffe6d1 !important;
  border-radius: 999px;
}

.manus-machines-grid::-webkit-scrollbar-thumb {
  background: #ff7200 !important;
  border-radius: 999px;
}

.manus-machine-card {
  border: 1px solid #eee !important;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa !important;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  width: 100%;
  height: 100%;
  position: relative;
  transform: rotateX(180deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.manus-machine-card:hover {
  transform: rotateX(180deg) scale(1.05);
  box-shadow: 0 12px 24px rgba(255, 114, 0, 0.15) !important;
  z-index: 5;
  border-color: #ff7200 !important;
}

.manus-machine-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #fff !important;
  display: block;
  padding: 0;
  /* Resimlerin sürüklenmesini engelle (sürükle-bırak scroll için önemli) */
  -webkit-user-drag: none;
  user-drag: none;
}

.manus-machine-fallback {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0 !important;
  color: #999 !important;
  font-size: 12px;
}

.manus-machines-empty {
  padding: 20px;
  border: 1px solid #ffd7ba !important;
  border-radius: 10px;
  background: #fff6ef !important;
  color: #8a4f10 !important;
  text-align: center;
}

.manus-machine-visual {
  position: relative;
  width: 100%;
  display: block;
}

.manus-strip-orange {
  background-color: #ff7200;
  width: 100%;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  clip-path: polygon(40px 0, 100% 0, 100% 100%, 20px 100%);

  position: absolute;
  bottom: 24px;
  left: 0;
  z-index: 10;
  margin-top: 0;
}

.manus-strip-black {
  background-color: #000;
  width: 100%;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;

  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 10;
}

.manus-machine-brand {
  font-size: 10px;
  text-transform: uppercase;
  color: #fff !important;
  letter-spacing: 0.04em;
  margin: 0;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manus-machine-model {
  font-size: 12px;
  font-weight: 600;
  color: #fff !important;
  margin: 0;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.is-hidden {
  display: none !important;
}

/* POP-UP (MODAL) STİLLERİ */
.manus-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.manus-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.manus-modal-content {
  background: #fff;
  width: 90%;
  max-width: 500px;
  border-radius: 16px;
  padding: 40px 30px;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.manus-modal-overlay.is-open .manus-modal-content {
  transform: translateY(0) scale(1);
}

.manus-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f0f0f0;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.manus-modal-close:hover {
  background: #ff7200;
  color: #fff;
}

.manus-modal-image {
  width: 100%;
  height: 220px;
  object-fit: contain;
  margin-bottom: 24px;
  background: #fafafa;
  border-radius: 8px;
  padding: 10px;
}

.manus-modal-brand {
  font-size: 14px;
  color: #ff7200;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.manus-modal-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 20px 0;
  color: #1c1c1c;
}

.manus-modal-text {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.5;
}

.manus-modal-btn {
  display: inline-block;
  background: #ff7200;
  color: #fff !important;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 114, 0, 0.3);
}

.manus-modal-btn:hover {
  background: #e06500;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 114, 0, 0.4);
}

/* RESPONSIVE AYARLAR */
@media (max-width: 900px) {
  .manus-machines-wrapper {
    flex-direction: column;
  }

  .manus-machines-tablist {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 16px;
  }

  .manus-machines-tablink {
    flex: 0 0 auto;
    width: auto;
    border-left: none;
    border-bottom: 4px solid transparent;
    white-space: nowrap;
  }

  .manus-machines-tablink.active {
    border-left-color: transparent;
    border-bottom-color: #ff7200 !important;
  }

  .manus-machines-grid {
    grid-template-rows: repeat(2, min-content);
    grid-auto-columns: calc(50% - 8px);
  }
}

@media (max-width: 600px) {
  .manus-machines-heading h2 {
    font-size: 32px;
  }

  .manus-machines-grid {
    grid-template-rows: repeat(1, min-content);
    grid-auto-columns: 85%;
    gap: 12px;
  }

  .manus-machines-content {
    padding: 16px;
  }
}
