/* Base Styles */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

/* Custom Cursor */
@media (pointer: fine) {
    body {
        cursor: none;
    }
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: #1C1B19;
    /* Default dark */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1000;
}

.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(28, 27, 25, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 999;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, background-color 0.3s;
}

/* Hover effect on cursor */
a:hover~.cursor-outline,
button:hover~.cursor-outline,
.cursor-pointer:hover~.cursor-outline,
[role="button"]:hover~.cursor-outline {
    width: 60px;
    height: 60px;
    border-color: #1C1B19;
    background-color: rgba(28, 27, 25, 0.05);
}

/* Light cursor variation for dark backgrounds */
.bg-brand-dark .cursor-dot {
    background-color: #EBE5DF;
}

.bg-brand-dark .cursor-outline {
    border-color: rgba(235, 229, 223, 0.4);
}

.bg-brand-dark a:hover~.cursor-outline,
.bg-brand-dark .cursor-pointer:hover~.cursor-outline {
    border-color: #EBE5DF;
    background-color: rgba(235, 229, 223, 0.1);
}

/* Subpage transitions */
.loader-subpage {
    transform: translateY(100%);
}

/* Text Splitting Styles */
.line,
.word,
.char {
    display: inline-block;
}

/* Hide horizontal scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(28, 27, 25, 0.2);
    border-radius: 10px;
}

/* Add to cart shine effect */
.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    transition: all 0.7s ease;
}

.shine-effect:hover::after {
    left: 150%;
}