.dtcml,
.dtcml * { box-sizing: border-box; }

.dtcml {
  --dtcml-visible: 7;
  --dtcml-gap: 16px;
  --dtcml-orange: #f4511e;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 0 34px;
  color: #111318;
  font-family: inherit;
}

.dtcml-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 24px;
}

.dtcml-heading { min-width: 0; }

.dtcml-head .dtcml-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.2;
  font-weight: 700;
}

.dtcml-heading-icon {
  flex: none;
  font-size: .78em;
}

.dtcml-heading-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dtcml-heading h2::after {
  content: "";
  flex: 0 0 clamp(20px, 7vw, 34px);
  height: 3px;
  border-radius: 2px;
  background: var(--dtcml-orange);
}

.dtcml-heading .dtcml-subtitle {
  margin: 5px 0 0;
  color: #5f6672;
  font-size: 13px;
  line-height: 1.45;
}

.dtcml-head-right,
.dtcml-clock { display: flex; align-items: center; }
.dtcml-head-right { gap: 18px; }
.dtcml-clock { gap: 8px; }

.dtcml-clock > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #111318;
  color: #fff;
  line-height: 1;
}

.dtcml-clock b { font-size: 12px; }
.dtcml-clock small { margin-top: 2px; font-size: 6px; }
.dtcml-view-all {
  color: #111318;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.dtcml-view-all:hover { color: var(--dtcml-orange); }

.dtcml-rows { display: grid; gap: 24px; }
.dtcml-carousel { position: relative; }
.dtcml-viewport { overflow: hidden; }
.dtcml-track {
  display: grid;
  grid-template-rows: minmax(0, auto);
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--dtcml-visible) - 1) * var(--dtcml-gap)) / var(--dtcml-visible));
  gap: var(--dtcml-gap);
  transition: transform .48s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.dtcml-card { min-width: 0; }
.dtcml-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 11px;
  border-radius: 4px;
  background: #f7f7f7;
}
.dtcml-image img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
  transition: transform .25s ease;
}
.dtcml-card:hover .dtcml-image img { transform: scale(1.035); }
.dtcml-discount {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 5px 7px;
  border-radius: 3px;
  background: #111318;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.dtcml-title {
  display: -webkit-box;
  min-height: 38px;
  overflow: hidden;
  color: #111318;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.dtcml-title:hover { color: var(--dtcml-orange); }
.dtcml-price { margin-top: 7px; font-size: 14px; font-weight: 700; color: var(--dtcml-orange); }
.dtcml-price del { margin-right: 6px; color: #868b94; font-size: 12px; font-weight: 400; }
.dtcml-price ins { color: var(--dtcml-orange); text-decoration: none; }

.dtcml-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--dtcml-orange);
  color: #fff;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 5px 16px rgba(0,0,0,.18);
}
.dtcml-prev { left: -18px; }
.dtcml-next { right: -18px; }
.dtcml-arrow:disabled { opacity: 0; pointer-events: none; }

@media (max-width: 1024px) {
  .dtcml { --dtcml-visible: 5; --dtcml-gap: 12px; }
}

@media (max-width: 600px) {
  .dtcml { --dtcml-visible: 3; --dtcml-gap: 8px; padding: 20px 0 24px; }
  .dtcml-head { align-items: flex-start; margin-bottom: 16px; }
  .dtcml-head .dtcml-heading h2 { font-size: 20px; }
  .dtcml-heading { flex-basis: 100%; }
  .dtcml-head-right { gap: 8px; }
  .dtcml-clock { display: none; }
  .dtcml-view-all { font-size: 11px; }
  .dtcml-rows { gap: 18px; }
  .dtcml-track { gap: var(--dtcml-gap); }
  .dtcml-image { margin-bottom: 6px; }
  .dtcml-image img { padding: 4px; }
  .dtcml-discount { top: 4px; left: 4px; padding: 3px 4px; font-size: 7px; }
  .dtcml-title { min-height: 30px; font-size: 9px; line-height: 1.4; }
  .dtcml-price { margin-top: 4px; font-size: 10px; }
  .dtcml-price del { display: block; margin-right: 0; font-size: 8px; }
  .dtcml-arrow { width: 30px; height: 30px; font-size: 23px; }
  .dtcml-prev { left: -8px; }
  .dtcml-next { right: -8px; }
}

@media (prefers-reduced-motion: reduce) {
  .dtcml-track,
  .dtcml-image img { transition: none; }
}
