#collections-scroll {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
}

@media (max-width: 1024px) {
  #collections-scroll { grid-template-columns: repeat(2, 1fr); }
}
.haydar-col-indicator { display: none; }

/* .hcs-track is display:contents by default so desktop's existing grid layout
   is completely untouched -- cards remain direct grid children of #collections-scroll. */
.hcs-track { display: contents; }

@media (max-width: 767px) {
  #collections-scroll {
    display: block !important;
    overflow: hidden !important;
    width: 100%;
    max-width: 100%;
    padding: 4px 20px 4px !important;
    touch-action: pan-y;
    cursor: grab;
  }
  #collections-scroll.is-dragging { cursor: grabbing; }

  .hcs-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 14px;
    will-change: transform;
    transition: transform .6s cubic-bezier(.65,0,.35,1);
  }
  .hcs-track.no-transition { transition: none !important; }

  .haydar-col-card {
    flex: 0 0 84vw !important;
    min-width: 0;
    min-height: 0 !important;
    height: clamp(260px, 58vw, 420px) !important;
    border-radius: 14px;
    padding: 20px 20px !important;
  }

  .haydar-viewall-wrap {
    grid-column: auto;
    flex: 0 0 60vw !important;
    min-width: 0;
    align-items: stretch;
    margin-top: 0;
  }
  .haydar-viewall-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    border-radius: 14px;
    height: clamp(260px, 58vw, 420px);
    white-space: normal;
  }

  /* editorial progress indicator, replaces generic carousel dots */
  .haydar-col-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 18px 0 4px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    letter-spacing: 0.12em;
  }
  .haydar-col-indicator-line {
    display: inline-block;
    width: 26px;
    height: 1px;
    background: #CBA968;
    opacity: 0.7;
  }
  .haydar-col-indicator-current { color: #CBA968; font-weight: 600; }
  .haydar-col-indicator-sep { color: #6E5138; opacity: 0.4; margin: 0 2px; }
  .haydar-col-indicator-total { color: #6E5138; opacity: 0.6; }
}

@media (max-width: 420px) {
  .haydar-col-card { flex-basis: 86vw !important; height: clamp(240px, 60vw, 380px) !important; }
  .haydar-viewall-wrap { flex-basis: 68vw !important; }
  .haydar-viewall-btn { height: clamp(240px, 60vw, 380px); }
}

/* defensive safety net: guarantee no page-level horizontal scroll on mobile
   regardless of any inherited Elementor flex/content_width quirks */
@media (max-width: 767px) {
  html, body { overflow-x: hidden !important; max-width: 100vw; }
}

@media (prefers-reduced-motion: reduce) {
  .haydar-col-card { transition: none !important; }
  .haydar-col-link { transition: none !important; }
  .hcs-track { transition: none !important; }
}.haydar-col-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 26px;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  isolation: isolate;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 4px 18px rgba(23,19,15,0.10);
}

.haydar-col-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(23,19,15,0.22);
}

.haydar-col-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,19,15,0.05) 0%, rgba(23,19,15,0.78) 100%);
  z-index: 0;
}

.haydar-col-card.no-image::before {
  background: linear-gradient(180deg, rgba(23,19,15,0.10) 0%, rgba(23,19,15,0.55) 100%);
}

/* gradient fallback variants, rotated by index, using brand palette */
.haydar-col-card.grad-1 { background-image: linear-gradient(135deg, #6E5138 0%, #17130F 100%); }
.haydar-col-card.grad-2 { background-image: linear-gradient(135deg, #CBA968 0%, #6E5138 100%); }
.haydar-col-card.grad-3 { background-image: linear-gradient(135deg, #17130F 0%, #3a2f26 100%); }

.haydar-col-card > * { position: relative; z-index: 1; }

.haydar-col-title {
  font-family: 'Cormorant Garamond', serif;
  color: #FAF6EF;
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.haydar-col-desc {
  font-family: 'Poppins', sans-serif;
  color: #E9E2D6;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 18px 0;
  max-width: 90%;
}

.haydar-col-link {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #CBA968;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.25s ease;
}

.haydar-col-card:hover .haydar-col-link { gap: 13px; }

.haydar-col-flourish {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  opacity: 0.55;
  z-index: 1;
}

.haydar-viewall-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.haydar-viewall-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6E5138;
  border: 1px solid #CBA968;
  padding: 14px 34px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
}

.haydar-viewall-btn:hover {
  background: #CBA968;
  color: #17130F;
}