.dc-carousel {
  --dc-arrow-size: 44px;
  --dc-bullet-gap: 8px;
  --dc-vertical-carousel-height: 640px;
  position: relative;
  width: 100%;
}

.dc-carousel__swiper {
  width: 100%;
  overflow: hidden;
}

.dc-carousel--direction-vertical .dc-carousel__swiper {
  height: var(--dc-vertical-carousel-height);
}

/* Editor-safe fallback before Swiper init to avoid raw unstructured image output. */
.dc-carousel__swiper:not(.swiper-initialized) .swiper-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.dc-carousel--direction-vertical .dc-carousel__swiper:not(.swiper-initialized) .swiper-wrapper {
  grid-template-columns: 1fr;
}

.dc-carousel__swiper:not(.swiper-initialized) .swiper-slide {
  width: auto !important;
}

.dc-carousel--layout-grid .dc-carousel__swiper {
  overflow: visible;
}

.dc-carousel--layout-grid .dc-carousel__swiper > .swiper-wrapper,
.dc-carousel--layout-grid .dc-carousel__swiper:not(.swiper-initialized) > .swiper-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 24px;
  align-items: stretch;
  justify-items: stretch;
  transform: none !important;
}

.dc-carousel--layout-grid .dc-carousel__slide {
  width: auto !important;
}

.dc-carousel--layout-grid .dc-carousel__arrow,
.dc-carousel--layout-grid .dc-carousel__pagination {
  display: none !important;
}

.dc-carousel--alt-ticker .dc-carousel__ticker-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dc-carousel--alt-ticker .dc-carousel__ticker-row {
  width: 100%;
}

.dc-carousel--alt-ticker .dc-carousel__swiper {
  overflow: hidden;
}

.dc-carousel .swiper-wrapper {
  align-items: stretch;
}

.dc-carousel__slide {
  height: auto;
}

.dc-carousel__card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.dc-carousel__media {
  width: 100%;
}

.dc-carousel__media--video {
  background: #000000;
}

.dc-carousel__media img {
  display: block;
  width: 100%;
  height: auto;
}

.dc-carousel__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.dc-carousel__video iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.dc-carousel__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dc-carousel__title {
  margin: 0;
}

.dc-carousel__description > :first-child {
  margin-top: 0;
}

.dc-carousel__description > :last-child {
  margin-bottom: 0;
}

.dc-carousel__caption {
  margin: 0 0 8px;
  font-size: 0.9em;
  opacity: 0.8;
}

.dc-carousel__button {
  display: inline-block;
  width: fit-content;
  border: 1px solid transparent;
  padding: 10px 18px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dc-carousel__button--static {
  cursor: default;
}

.dc-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  transform: translateY(-50%);
  width: var(--dc-arrow-size);
  height: var(--dc-arrow-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  background: #ffffff;
  color: #111111;
  cursor: pointer;
}

.dc-carousel__arrow--prev {
  left: 8px;
}

.dc-carousel__arrow--next {
  right: 8px;
}

.dc-carousel--direction-vertical .dc-carousel__arrow {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.dc-carousel--direction-vertical .dc-carousel__arrow--prev {
  top: 8px;
}

.dc-carousel--direction-vertical .dc-carousel__arrow--next {
  top: auto;
  bottom: 8px;
}

.dc-carousel__arrow.swiper-button-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dc-carousel__pagination {
  position: relative;
  margin-top: 16px;
  line-height: 0;
}

.dc-carousel__pagination .swiper-pagination-bullet {
  margin: 0 var(--dc-bullet-gap);
  opacity: 0.45;
}

.dc-carousel__pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  opacity: 1;
}

.dc-carousel--style-ticker .swiper-wrapper {
  transition-timing-function: linear !important;
}

.dc-carousel--alt-ticker .dc-carousel__arrow,
.dc-carousel--alt-ticker .dc-carousel__pagination {
  display: none;
}

.dc-product-carousel__notice {
  padding: 16px;
  border: 1px solid #dcdcde;
  background: #ffffff;
  color: #1d2327;
}

.dc-product-carousel .swiper-wrapper {
  height: auto;
}

.dc-product-carousel__slide {
  height: auto;
}

.dc-product-carousel__card {
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #d9dde6;
  border-radius: 14px;
  box-shadow: none;
  padding: 14px;
}

.dc-product-carousel__media {
  display: block;
  margin: 0 0 14px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(132deg, #c8dce7, #d7d3c8);
}

.dc-product-carousel__media img {
  display: block;
  width: 100%;
  height: 242px;
  margin: 0 auto;
  object-fit: contain;
}

.dc-product-carousel__content {
  gap: 0;
}

.dc-product-carousel__title {
  margin: 0 0 8px;
  color: #252b39;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.dc-product-carousel__title a {
  color: inherit;
  text-decoration: none;
}

.dc-product-carousel__title a:hover,
.dc-product-carousel__title a:focus {
  text-decoration: underline;
}

.dc-product-carousel__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 8px 0;
  border-top: 1px solid #eceff4;
  border-bottom: 1px solid #eceff4;
  color: #4b505d;
  font-size: 14px;
}

.dc-product-carousel__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dc-product-carousel__price {
  margin: 0;
  color: #111f4b;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.dc-product-carousel__button {
  min-width: 104px;
  padding: 8px 14px;
  border: 0;
  border-radius: 2px;
  background: #11215f;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
}

.dc-product-carousel__button:hover,
.dc-product-carousel__button:focus {
  background: #0a1747;
  color: #ffffff;
}

@media (max-width: 1024px) {
  .dc-carousel__arrow {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 767px) {
  .dc-carousel__arrow {
    width: 34px;
    height: 34px;
  }
}
