
:root {
  --eme-cat-accent: #cf1f2e;
  --eme-cat-accent-dark: #aa1724;
  --eme-cat-accent-soft: rgba(207, 31, 46, 0.12);
}

/* ===== Barra full width ===== */
.eme-category-carousel-bar {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: linear-gradient(180deg, #fff8f8 0%, #ffffff 100%);
  border-top: 1px solid rgba(207, 31, 46, .10);
  border-bottom: 1px solid rgba(207, 31, 46, .10);
  padding: 20px 0;
  position: relative;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", Roboto, sans-serif;
}

.eme-category-carousel-inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  padding: 0 60px;
  box-sizing: border-box;
}

.eme-cat-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.eme-cat-arrow.left  { left: 20px; }
.eme-cat-arrow.right { right: 20px; }

.eme-cat-arrow:hover {
  transform: translateY(-50%) scale(1.08);
  opacity: .82;
}
.eme-cat-arrow svg {
  width: 26px;
  height: 26px;
  stroke: var(--eme-cat-accent);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.eme-category-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 80px;
  box-sizing: border-box;
  justify-content: center;
}
.eme-category-track::-webkit-scrollbar {
  display: none;
}

.eme-category-item {
  min-width: 130px;
  flex: 0 0 130px;
  text-align: center;
  color: #1a1a1a;
  font-size: 13px;
  line-height: 1.3;
  user-select: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.eme-category-thumb {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  border: 1px solid rgba(207, 31, 46, .10);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.eme-category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eme-category-item:hover .eme-category-thumb {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(207, 31, 46, .18);
  border-color: rgba(207, 31, 46, .28);
}

.eme-category-title {
  margin-top: 12px;
  font-weight: 600;
  color: #1f1f1f;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  max-width: 140px;
  text-wrap: balance;
  transition: color .2s ease;
}

.eme-category-item:hover .eme-category-title {
  color: var(--eme-cat-accent-dark);
}


@media (max-width: 768px) {
  .eme-category-carousel-bar {
    padding: 16px 0;
  }

  .eme-category-carousel-inner {
    padding: 0 40px;
  }

  .eme-cat-arrow {
    width: 24px;
    height: 24px;
  }
  .eme-cat-arrow.left  { left: 8px; }
  .eme-cat-arrow.right { right: 8px; }

  .eme-cat-arrow svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.6;
  }

  .eme-category-track {
    gap: 16px;
    padding: 0 48px;
    scroll-snap-type: x mandatory;
  }

  .eme-category-item {
    min-width: 100px;
    flex: 0 0 100px;
    font-size: 12px;
    line-height: 1.3;
    scroll-snap-align: center;
  }

  .eme-category-thumb {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
  }

  .eme-category-title {
    font-size: 12px;
    line-height: 1.3;
    margin-top: 8px;
    max-width: 110px;
    text-align: center;
  }
}
