.marquee-strip {
  padding: 26px 0 30px;
  overflow: hidden;
  background: #fff7f4;
  border-bottom: 1px solid #f3e7e2;
}

/* 제목 옆 빈 공간은 오른쪽 끝까지 이어지는 선으로 채운다. */
.marquee-strip__title {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto 20px;
  color: var(--pink);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.6px;
}

.marquee-strip__title::before {
  content: "";
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e35c3e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8a2 2 0 0 0 2-2h14a2 2 0 0 0 2 2v2a2 2 0 0 0 0 4v2a2 2 0 0 0-2 2H5a2 2 0 0 0-2-2v-2a2 2 0 0 0 0-4z'/%3E%3Cpath d='M14 6v2m0 3v2m0 3v2'/%3E%3C/svg%3E") center / 22px no-repeat;
  border: 1px solid #f3d8cf;
  box-shadow: 0 6px 14px rgba(227, 92, 62, .14);
}

.marquee-strip__title::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 6px;
  background: linear-gradient(90deg, #efc9bd, rgba(239, 201, 189, 0));
}

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee + .marquee {
  margin-top: 14px;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-slide 28s linear infinite;
}

.marquee--reverse .marquee__track {
  animation-name: marquee-slide-reverse;
  animation-duration: 30s;
}

/* 터치 기기는 탭한 뒤 hover 가 남아 멈춰 버리므로 마우스 기기에서만 멈춘다. */
@media (hover: hover) {
  .marquee:hover .marquee__track {
    animation-play-state: paused;
  }
}

.marquee__group {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 0 7px;
  margin: 0;
  list-style: none;
}

.marquee-coupon {
  display: flex;
  flex-direction: column;
  width: 296px;
  gap: 10px;
  padding: 9px;
  border: 1px solid #f1e3dd;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
  position: relative;
}

.marquee-coupon img {
  width: 100%;
  height: auto;
  aspect-ratio: 1812 / 868;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--line);
}

.marquee-coupon span {
  padding: 0 5px 4px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  padding-right: 38px;
}

.marquee-coupon__add {
  position: absolute;
  right: 9px;
  bottom: 7px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fdebe5;
  color: #e35c3e;
  cursor: pointer;
  transition: background-color .2s;
}

.marquee-coupon__add::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: currentColor;
  -webkit-mask: url(/assets/images/suitcase-add.svg) center / contain no-repeat;
  mask: url(/assets/images/suitcase-add.svg) center / contain no-repeat;
}

.marquee-coupon__add:hover { background: #fbd6ca; }
.marquee-coupon__add:focus-visible { outline: 2px solid #e35c3e; outline-offset: 2px; }
.marquee-coupon__add:disabled { background: #e2f4ea; color: #22a467; cursor: default; }

.marquee-coupon__add:disabled::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.marquee-banner {
  display: grid;
  width: 230px;
  height: 74px;
  place-items: center;
  padding: 0 24px;
  border: 1px solid #f1e3dd;
  border-radius: var(--radius-md);
  background: #fff;
}

.marquee-banner img {
  display: block;
  width: 100%;
  max-width: 152px;
  max-height: 52px;
  height: auto;
  object-fit: contain;
}

.marquee-banner--jryn img { max-width: 132px; }
.marquee-banner--blueline img { max-width: 142px; }
.marquee-banner--magnum img { max-width: 52px; }
.marquee-banner--shake img { max-width: 160px; }
.marquee-banner--sota img { max-width: 166px; }

.marquee-banner--avani img {
  width: 128px;
  max-width: 128px;
  height: 52px;
  object-fit: cover;
}

@keyframes marquee-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-25%); }
}

@keyframes marquee-slide-reverse {
  from { transform: translateX(-25%); }
  to { transform: translateX(0); }
}

@media (max-width: 720px) {
  .marquee-strip { padding: 20px 0 24px; }
  .marquee-strip__title { width: calc(100% - 32px); gap: 10px; margin-bottom: 14px; font-size: 21px; }
  .marquee-strip__title::before { width: 32px; height: 32px; border-radius: var(--radius-sm); background-size: 18px; }
  .marquee-coupon { width: 244px; padding: 8px; gap: 8px; }
  .marquee-coupon span { font-size: 11px; }
  .marquee-banner { width: 190px; height: 62px; }
  .marquee-banner img { max-width: 124px; max-height: 42px; }
  .marquee-banner--jryn img { max-width: 108px; }
  .marquee-banner--blueline img { max-width: 116px; }
  .marquee-banner--magnum img { max-width: 42px; }
  .marquee-banner--shake img { max-width: 132px; }
  .marquee-banner--sota img { max-width: 138px; }
  .marquee-banner--avani img { width: 105px; max-width: 105px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
}
