/* Chrome, Safari */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* IE, Edge */
.hide-scrollbar {
    -ms-overflow-style: none;
}

/* Firefox */
.hide-scrollbar {
    scrollbar-width: none;
}

/* Modern Minimal Scrollbar */

.custom-scrollbar {
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: rgba(100, 116, 139, .4) transparent;
}

/* Chrome, Safari */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(100, 116, 139, .4);
    /* slate-500/40 */
    border-radius: 9999px;
    transition: background-color .2s ease;
}

.custom-scrollbar:hover::-webkit-scrollbar-thumb {
    background-color: rgba(59, 130, 246, .6);
    /* blue-500/60 */
}

.dark .custom-scrollbar {
    scrollbar-color: rgba(148, 163, 184, .4) transparent;
    /* slate-400 */
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(148, 163, 184, .4);
}

.dark .custom-scrollbar:hover::-webkit-scrollbar-thumb {
    background-color: rgba(59, 130, 246, .7);
}


/* ============================= */
/* GLOBAL FORM ELEMENTS */
/* ============================= */

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    /* gray-300 */
    background-color: #ffffff;
    color: #111827;
    /* gray-900 */
    outline: none;
    transition: all 0.2s ease;
    box-shadow: none;
}

/* Light Mode Focus */
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
    border-color: #3b82f6;
    /* blue-500 */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

/* Dark Mode Global */
.dark input:not([type="checkbox"]):not([type="radio"]),
.dark select,
.dark textarea {
    background-color: #0f0f11 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    background-image: none !important;
}

.dark input:focus,
.dark select:focus,
.dark textarea:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .2) !important;
}

/* Hover */
input:hover,
select:hover,
textarea:hover {
    border-color: #9ca3af;
}

/* Disabled */
input:disabled,
select:disabled,
textarea:disabled {
    background-color: #f3f4f6;
    opacity: 0.7;
}

/* Remove number spinner */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ============================= */
/* DARK MODE SUPPORT */
/* ============================= */

.dark input:focus,
.dark select:focus,
.dark textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .25);
}

.dark input:hover,
.dark select:hover,
.dark textarea:hover {
    border-color: #4b5563;
    /* gray-600 */
}


.dark input:disabled,
.dark select:disabled,
.dark textarea:disabled {
    background-color: #111827;
    /* gray-900 */
}


/* ============================= */
/* AVANT-GARDE ANIMATIONS */
/* ============================= */

/* Button Success State */
@keyframes btnSuccess {
    0% {
        transform: scale(1);
        background-color: #1c1917;
    }

    /* stone-900 */
    50% {
        transform: scale(0.95);
        background-color: #059669;
    }

    /* emerald-600 */
    70% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        background-color: #1c1917;
    }
}

/* Cart Icon Pop */
@keyframes cartPop {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.4) rotate(-10deg);
        color: #059669;
    }

    60% {
        transform: scale(0.9) rotate(10deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

/* Subtle notification entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-btn-success {
    animation: btnSuccess 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-cart-pop {
    animation: cartPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Keep the flying effect but make it local and elegant */
@keyframes flyUpFade {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) scale(0.5);
        opacity: 0;
    }
}

.animate-fly-up {
    animation: flyUpFade 0.6s ease-out forwards;
}

@keyframes shine {
    from {
        transform: translateX(-200%) skewX(-15deg);
    }

    to {
        transform: translateX(200%) skewX(-15deg);
    }
}

.animate-shine {
    animation: shine 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-down-fade {
    animation: slideDownFade 0.6s ease-out forwards;
}