/* Нескінченна бігуча строка для ghost-написів */
.rc-marquee {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
}
.rc-marquee__track {
    display: flex;
    width: max-content;
    animation: rc-marquee 40s linear infinite;
}
.rc-marquee__text {
    display: block;
    white-space: nowrap;
    padding-right: 0.35em;
}
@keyframes rc-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .rc-marquee__track { animation: none; }
}

/* Зациклені анімації логотипа: кросівок похитується, крапка пульсує */
.rc-logo-svg .rc-sneaker {
    transform-box: fill-box;
    transform-origin: 50% 85%;
    animation: rc-sneaker-sway 3.6s ease-in-out 1.2s infinite;
}
@keyframes rc-sneaker-sway {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(-5.5deg) translateY(-26px); }
    50% { transform: rotate(1deg) translateY(0); }
    75% { transform: rotate(4.5deg) translateY(-18px); }
}
.rc-logo-svg .rc-dot {
    transform-box: fill-box;
    transform-origin: center;
    animation: rc-dot-pulse 2.2s ease-in-out 2.6s infinite;
}
@keyframes rc-dot-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.75; }
}
@media (prefers-reduced-motion: reduce) {
    .rc-logo-svg .rc-sneaker,
    .rc-logo-svg .rc-dot { animation: none; }
}

/* Лайтбокс галереї товару */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
}
#lightbox.hidden { display: none; }
.rc-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--foreground) 82%, transparent);
    cursor: zoom-out;
}
.rc-lightbox__img {
    position: relative;
    max-width: 88vw;
    max-height: 85vh;
    object-fit: contain;
    background: var(--background);
    padding: 24px;
}
.rc-lightbox__close,
.rc-lightbox__nav {
    position: absolute;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    border: 1px solid color-mix(in srgb, var(--background) 55%, transparent);
    color: var(--background);
    font-size: 22px;
    line-height: 1;
    transition: transform .25s ease, border-color .25s ease;
}
.rc-lightbox__close { top: 24px; right: 24px; }
.rc-lightbox__close:hover { transform: rotate(90deg); }
.rc-lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 34px; }
.rc-lightbox__nav:hover { border-color: var(--background); }
.rc-lightbox__nav--prev { left: 24px; }
.rc-lightbox__nav--next { right: 24px; }

/* «NANO TECHNOLOGY» у лого — циклічне друкування (стиль hydrophob.ua) */
.rc-logo { position: relative; }
.rc-logo-tag {
    position: absolute;
    left: 12%;
    top: 60%;
    font-size: 0.55em;
    font-weight: 600;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--color-lavender-deep, #7c6da8);
    white-space: nowrap;
    pointer-events: none;
    min-height: 1em;
}
.rc-logo-tag { line-height: 1; }
.rc-logo-tag.is-typing::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: .9em;
    background: currentColor;
    animation: typing-caret-blink .7s steps(1) infinite;
}
@keyframes typing-caret-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .rc-logo-tag.is-typing::after { animation: none; }
}

/* Без ховер-ефекту на лого */
.rc-logo .rc-logo-svg,
.rc-logo:hover .rc-logo-svg {
    transform: none !important;
    transition: none !important;
}

/* Виразніше сплиття фонових ghost-написів */
.ghost-animate {
    animation: rc-ghost-in .65s cubic-bezier(.22, 1, .36, 1) both !important;
}
@keyframes rc-ghost-in {
    0% { opacity: 0; transform: translateY(110px) scale(.94); }
    55% { opacity: 1; }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .ghost-animate { animation: none !important; opacity: 1 !important; transform: none !important; }
}
