/* Custom styles on top of Tailwind CSS */

/* Scroll suave solo para navegación por anchor links, NO global */
/* Se controla por JS durante el filtrado de categorías */
html {
    scroll-behavior: auto;
}

/* Activar scroll suave solo al hacer clic en enlaces anchor */
html:focus-within {
    scroll-behavior: smooth;
}

/* Custom Scrollbar (Brand Purple) */
.custom-scrollbar::-webkit-scrollbar {
    height: 5px;
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f5f3ff; /* brand-50 */
    border-radius: 99px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #8b5cf6; /* brand-500 */
    border-radius: 99px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #7c3aed; /* brand-600 */
}

/* Firefox scrollbar */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #8b5cf6 #f5f3ff;
}

/* Cart Scrollbar - Prominent Brand Purple */
.cart-scrollbar::-webkit-scrollbar {
    width: 8px;
}
.cart-scrollbar::-webkit-scrollbar-track {
    background: #ede9fe; /* brand-100 */
    border-radius: 99px;
}
.cart-scrollbar::-webkit-scrollbar-thumb {
    background: #7c3aed; /* brand-600 */
    border-radius: 99px;
    border: 1px solid #ede9fe;
}
.cart-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #6d28d9; /* brand-700 */
}
/* Firefox */
.cart-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #7c3aed #ede9fe;
}

/* Hide number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

/* Animations */
@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.pop-effect {
    animation: pop 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
