.carousel {
  position: relative;
  width: 100%;
  max-width: 1024px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: #111;
  font-family: system-ui, sans-serif;
  overflow: hidden;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: #f3f4f6;
  border-bottom: 1px solid #d1d5db;
}

.carousel-viewport {
  overflow: hidden;
  background: #111;
  touch-action: pan-y;
  cursor: grab;
}

.carousel-viewport:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  align-items: flex-start;
}

.carousel-track img {
  width: 100%;
  height: auto;
  flex-shrink: 0;
  display: block;
}

.carousel-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid #1f2937;
  border-radius: 50%;
  background: #fff;
  color: #111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.carousel-btn:hover {
  background: #e5e7eb;
}

.carousel-btn:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 2px;
}

.carousel-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.carousel .dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.carousel .dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  border-radius: 50%;
  border: 1.5px solid #1f2937;
  background: #fff;
  color: #111;
  cursor: pointer;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  transition: background 0.2s, border-color 0.2s;
}

@media (min-width: 768px) {
  .carousel-controls {
    gap: 12px;
    padding: 12px 16px;
  }

  .carousel-btn {
    width: 48px;
    height: 48px;
    border-width: 2px;
  }

  .carousel-btn svg {
    width: 28px;
    height: 28px;
  }

  .carousel .dots {
    gap: 8px;
  }

  .carousel .dot {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border-width: 2px;
  }

  .carousel .dot.active {
    border-width: 3px;
    box-shadow: 0 0 0 2px #7c2d12;
  }
}

.carousel .dot:hover {
  background: #e5e7eb;
}

.carousel .dot:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 2px;
}

.carousel .dot.active {
  background: #c2410c;
  border-color: #7c2d12;
  border-width: 2px;
  box-shadow: 0 0 0 1px #7c2d12;
}

.carousel-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
