/**
 * Kobicart Banner Studio — storefront
 */
.kc-bs {
  --kc-bs-height: 320px;
  --kc-bs-radius: 8px;
  --kc-bs-gap: 12px;
  --kc-bs-aspect: 1440 / 420;
  --kc-bs-transition: 500ms;
  position: relative;
  margin: 0 0 1.25rem;
  box-sizing: border-box;
}

.kc-bs *,
.kc-bs *::before,
.kc-bs *::after {
  box-sizing: border-box;
}

.kc-bs--full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.kc-bs--container,
.kc-bs--narrow {
  width: 100%;
  max-width: 100%;
}

.kc-bs--narrow .kc-bs__viewport {
  max-width: 960px;
  margin: 0 auto;
}

.kc-bs__viewport {
  overflow: hidden;
  border-radius: var(--kc-bs-radius);
}

.kc-bs__track {
  display: flex;
  transition: transform var(--kc-bs-transition) ease;
  will-change: transform;
}

.kc-bs--hero .kc-bs__track,
.kc-bs--strip .kc-bs__track {
  touch-action: pan-y pinch-zoom;
}

.kc-bs--grid .kc-bs__track {
  display: grid;
  grid-template-columns: repeat(var(--kc-bs-cols, 1), minmax(0, 1fr));
  gap: var(--kc-bs-gap);
  transform: none !important;
}

.kc-bs__slide {
  flex: 0 0 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .kc-bs__slide--mobile-only {
    display: none !important;
  }
}

.kc-bs--grid .kc-bs__slide {
  flex: none;
}

.kc-bs__frame {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--kc-bs-radius);
  text-decoration: none;
  color: inherit;
  height: var(--kc-bs-height);
  background: #e8ecea;
}

.kc-bs--strip .kc-bs__frame {
  height: var(--kc-bs-height);
}

.kc-bs--grid .kc-bs__frame {
  height: auto;
  aspect-ratio: var(--kc-bs-aspect);
  min-height: 160px;
}

.kc-bs__media,
.kc-bs__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kc-bs__overlay {
  position: absolute;
  inset: 0;
  background: #000;
  pointer-events: none;
}

.kc-bs__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: clamp(0.75rem, 3vw, 1.5rem);
  max-width: min(92%, 520px);
  z-index: 2;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.kc-bs__slide--top-left .kc-bs__content { justify-content: flex-start; align-items: flex-start; text-align: left; }
.kc-bs__slide--top-center .kc-bs__content { justify-content: flex-start; align-items: center; text-align: center; margin: 0 auto; left: 0; right: 0; }
.kc-bs__slide--top-right .kc-bs__content { justify-content: flex-start; align-items: flex-end; text-align: right; margin-left: auto; right: 0; }
.kc-bs__slide--center-left .kc-bs__content { justify-content: center; align-items: flex-start; text-align: left; }
.kc-bs__slide--center .kc-bs__content { justify-content: center; align-items: center; text-align: center; margin: 0 auto; left: 0; right: 0; }
.kc-bs__slide--center-right .kc-bs__content { justify-content: center; align-items: flex-end; text-align: right; margin-left: auto; right: 0; }
.kc-bs__slide--bottom-left .kc-bs__content { justify-content: flex-end; align-items: flex-start; text-align: left; }
.kc-bs__slide--bottom-center .kc-bs__content { justify-content: flex-end; align-items: center; text-align: center; margin: 0 auto; left: 0; right: 0; }
.kc-bs__slide--bottom-right .kc-bs__content { justify-content: flex-end; align-items: flex-end; text-align: right; margin-left: auto; right: 0; }

.kc-bs__title {
  font-size: clamp(1.1rem, 2.8vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.kc-bs__subtitle {
  font-size: clamp(0.8125rem, 1.8vw, 1rem);
  line-height: 1.45;
  opacity: 0.92;
}

.kc-bs__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.5rem 1rem;
  min-height: 44px;
  border-radius: 6px;
  background: #ffffff;
  color: #243038;
  font-size: 0.875rem;
  font-weight: 600;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.kc-bs__nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 0.35rem;
  pointer-events: none;
  z-index: 5;
}

.kc-bs__btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.kc-bs__btn:hover {
  transform: scale(1.05);
  background: #fff;
}

.kc-bs__btn span {
  display: block;
  width: 9px;
  height: 9px;
  border-top: 2px solid #243038;
  border-right: 2px solid #243038;
}

.kc-bs__btn--prev span {
  transform: rotate(-135deg);
  margin-left: 3px;
}

.kc-bs__btn--next span {
  transform: rotate(45deg);
  margin-right: 3px;
}

.kc-bs__dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.kc-bs__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #c5cec9;
  cursor: pointer;
  min-width: 8px;
  min-height: 8px;
}

.kc-bs__dot.is-active {
  background: #1f4f4a;
  transform: scale(1.15);
}

@media (min-width: 768px) {
  .kc-bs--grid .kc-bs__track {
    grid-template-columns: repeat(var(--kc-bs-cols-desktop, 2), minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .kc-bs--strip .kc-bs__title {
    font-size: 1rem;
  }

  .kc-bs--strip .kc-bs__subtitle,
  .kc-bs--strip .kc-bs__cta {
    display: none;
  }

  .kc-bs__nav {
    display: none;
  }
}

@media (max-width: 360px) {
  .kc-bs__content {
    padding: 0.65rem;
  }
}
