/* 03 · Shop By Category carousel */
.dn-categories { background: #fff; padding: 32px 0 40px; }
.dn-categories .dn-section-head { align-items: flex-end; margin-bottom: 28px; }
.dn-cat-controls { display: flex; align-items: center; gap: 8px; }
.dn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #2b2a27;
  border-radius: 50%;
  background: #fff;
  color: var(--dn-ink);
  cursor: pointer;
  transition: background-color .2s ease, opacity .2s ease, border-color .2s ease;
}
.dn-arrow:hover:not(:disabled) { background: var(--dn-ink); color: #fff; border-color: var(--dn-ink); }
.dn-arrow:disabled { opacity: .32; cursor: default; }
.dn-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

.dn-cat-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 24px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 24px;
}
.dn-cat-viewport::-webkit-scrollbar { display: none; }
.dn-cat-track { display: flex; gap: 16px; width: max-content; }
.dn-cat-card {
  position: relative;
  flex: 0 0 328px;
  width: 328px;
  height: 492px;
  border-radius: 10px;
  overflow: hidden;
  background: #ddd;
  scroll-snap-align: start;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  cursor: grab;
  user-select: none;
}
.dn-cat-card.is-dragging { cursor: grabbing; }
.dn-cat-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  pointer-events: none;
}
.dn-cat-card:hover > img { transform: scale(1.035); }
.dn-cat-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,.72) 100%);
}
.dn-cat-card__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  color: #fff;
}
.dn-cat-card__title {
  color: #fff;
  font-size: 32px;
  line-height: 44px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.dn-cat-card__pills { display: flex; gap: 12px; }
.dn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 2px solid #fff;
  border-radius: 24px;
  color: #fff;
  background: transparent;
  font-size: 15px;
  line-height: 20px;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.dn-pill:hover { background: #fff; color: var(--dn-green); }

.dn-scroll-progress {
  position: relative;
  height: 2px;
  margin: 20px 24px 0;
  background: #e8e6e1;
  overflow: hidden;
}
.dn-scroll-progress > span {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--dn-ink);
  transform-origin: left center;
  transition: width .08s linear;
}

@media (max-width: 849px) {
  .dn-categories { padding: 24px 0 32px; }
  .dn-categories .dn-section-head { align-items: center; padding: 0 16px; margin-bottom: 20px; gap: 8px; }
  .dn-categories .dn-section-head h2 { font-size: 24px; line-height: 30px; white-space: nowrap; }
  .dn-cat-viewport { padding: 0 16px; scroll-padding-left: 16px; }
  .dn-cat-card { flex-basis: 328px; width: 328px; height: 492px; }
  .dn-cat-card__content { padding: 24px; }
  .dn-cat-card__title { font-size: 30px; line-height: 38px; }
  .dn-arrow { width: 38px; height: 38px; }
  .dn-scroll-progress { margin: 16px 16px 0; }
}
@media (max-width: 380px) {
  .dn-cat-card { flex-basis: 300px; width: 300px; height: 450px; }
}
