.marquee {
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  background:  #640f8b;;
  padding: 16px 0;

}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right,
      rgba(111, 42, 190, 1) 0%,
      rgba(111, 42, 190, 0.6) 40%,
      rgba(255, 255, 255, 0) 100%);
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left,
      rgba(111, 42, 190, 1) 0%,
      rgba(111, 42, 190, 0.6) 40%,
      rgba(255, 255, 255, 0) 100%);
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
}

.marquee-track a {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0 0.5rem;
  padding: 0.4rem 0.8rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  text-decoration: none;
  color: #4a0d66;
      background: linear-gradient(135deg, #f3e6ff, #fcefc6);
  border-radius: 12px;
  transition: transform 0.1s, box-shadow 0.1s, background 0.2s;
  cursor: pointer;
  box-shadow: 0 4px 0 #d1b3ff;
}

.marquee-track a:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #d1b3ff;
}

.marquee-track a::before {
  content: '';
  display: inline-block;
  width: 35px;
  height: 35px;
  margin-right: 8px;
  background: url('https://pervynka.in.ua/wp-content/uploads/2025/11/Slice-9-2.png') no-repeat center/contain;
  flex-shrink: 0;
}

.marquee-track a span {
  background: linear-gradient(90deg, #6809a7, #5817ad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.marquee-hint {
  padding-top: 16px;
  text-align: center;
  font-size: 0.9rem;
  color: #888888;
  font-style: italic;
  font-weight: bold;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}

.marquee-hint .arrow {
  font-weight: bold;
  color: #ccc;
  transition: color 0.3s, transform 0.3s;
}
.marquee-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(74, 13, 102, 0.9);
  color: #fff;
  border: 1px solid #ffffff;
  border-radius: 20%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

}

#marqueeLeft { left: 10px; }
#marqueeRight { right: 10px; }

.locked {
  pointer-events: none !important;
  cursor: default !important;
  opacity: 0.6;
}

.locked:hover {
  color: inherit !important;
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 480px) {
.marquee{
  position: relative;
  width: 100vw       !important;
  left: 50%         !important;
  margin-left: -50vw  !important;
}
.marquee-hint .arrow {
  font-size: x-small;
}

.marquee-btn {
  width: 40px;
  height: 40px;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.marquee-track a {
  font-size: 0.9rem;
  padding: 0.3rem 0.6rem;
   margin: 0 0.3rem;
}

.marquee-track a::before {
  width: 25px;
  height: 25px;
}

.marquee::before,
.marquee::after {
    width: 40px;
    background-size: cover;
}

.marquee-hint {
padding-top: 16px;
margin-left: 30px;
margin-right: 30px;
}
}
@media (hover: hover) and (pointer: fine) {

.marquee-track a:hover {
  background: #ffc023;
}
.marquee-btn:hover {
  background: rgb(195, 64, 255);
}

}
