.gch-global-scroller {
  background-color: #ffffff;
  padding: 25px 0;
  direction: rtl;
  margin-top: 40px;
}

.gch-global-scroller.is-footer .gch-scroller-shell {
  border-top: 1px solid #ececec;
  padding-top: 30px;
}

.gch-global-scroller .scroller-container {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 12px;
  padding: 10px 5px 15px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  cursor: grab;
}

.gch-global-scroller .scroller-container::-webkit-scrollbar {
  height: 5px !important;
  display: block !important;
}

.gch-global-scroller .scroller-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.gch-global-scroller .scroller-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.gch-global-scroller .scroller-container.is-dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
  scroll-snap-type: none;
}

.gch-global-scroller .scroller-container.is-dragging * {
  pointer-events: none;
}

.gch-global-scroller .gch-card {
  flex: 0 0 calc(16.66% - 10px);
  min-width: 145px;
  max-width: 155px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.01);
}

@media (hover: hover) and (pointer: fine) {
  .gch-global-scroller .gch-card:hover {
    transform: translateY(-4px);
    border-color: #ff416c;
  }

  .gch-global-scroller .gch-card:hover .gch-card-btn {
    background-color: #ff416c;
    color: #ffffff;
  }
}

.gch-global-scroller .gch-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gch-global-scroller .gch-card-body {
  padding: 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gch-global-scroller .gch-card-badge {
  display: inline-block;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 20px;
  font-weight: bold;
  align-self: flex-start;
  margin-bottom: 6px;
}

.gch-global-scroller .badge-post {
  background-color: #e0e7ff;
  color: #4f46e5;
}

.gch-global-scroller .badge-product {
  background-color: #fef3c7;
  color: #d97706;
}

.gch-global-scroller .badge-page {
  background-color: #dcfce7;
  color: #15803d;
}

.gch-global-scroller .gch-card-title {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 6px;
  height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.gch-global-scroller .gch-card-title a {
  color: #1e293b;
  text-decoration: none;
}

.gch-global-scroller .gch-card-price {
  font-size: 12px;
  font-weight: 800;
  color: #10b981;
  text-align: left;
  height: 18px;
  margin-bottom: 4px;
}

.gch-global-scroller .gch-card-btn {
  display: block;
  text-align: center;
  background-color: #f1f5f9;
  color: #475569;
  padding: 5px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
  margin-top: auto;
}

.gch-scroller-header {
  text-align: center;
  margin-bottom: 20px;
}

.gch-scroller-title {
  font-family: Lalezar, sans-serif;
  font-weight: 400 !important;
  font-style: normal !important;
  color: #2d4263;
  margin: 0;
  display: inline-block;
  padding: 8px 24px;
  background-color: #f1f5f9;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .gch-global-scroller .gch-card {
    flex: 0 0 calc(41% - 10px) !important;
    min-width: 130px;
    max-width: 140px;
  }

  .gch-global-scroller .gch-card-title {
    font-size: 11.5px;
    height: 32px;
  }

  .gch-global-scroller.is-footer .gch-scroller-title {
    font-size: 23.2px !important;
  }

  /* فقط اسکرولر داخل مقاله — نه فوتر */
  .gch-global-scroller:not(.is-footer) {
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
    max-width: none;
  }

  .gch-global-scroller:not(.is-footer) .gch-scroller-shell.container {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .gch-global-scroller:not(.is-footer) .gch-scroller-header {
    padding-left: 15px;
    padding-right: 15px;
  }

  .gch-global-scroller:not(.is-footer) .scroller-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .gch-global-scroller:not(.is-footer) .gch-card {
    flex: 0 0 calc(38% - 8px) !important;
    min-width: 120px;
    max-width: 132px;
  }
}
