/* Catálogo público — BC Modas | BritosCode Tecnologia */
:root {
    --brand: #111827;
    --brand-soft: rgba(17, 24, 39, 0.12);
}

html {
    -webkit-tap-highlight-color: transparent;
}

button {
    touch-action: manipulation;
}

[x-cloak] {
    display: none !important;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.swatch {
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.18);
}

/* Dark mode (OLED #0f172a) para widgets renderizados pelo Django */
.dark input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.dark textarea,
.dark select {
    background-color: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}
.dark input::placeholder,
.dark textarea::placeholder {
    color: #64748b;
}
.dark input[type="checkbox"],
.dark input[type="radio"] {
    background-color: #1e293b;
    border-color: #475569;
}

/* Rolagem nativa e fluida em iOS/Android */
.overflow-y-auto,
.overflow-x-auto {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}
.animate-drawer {
    animation: slide-in 0.22s ease-out;
}

@keyframes slide-in-left {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}
.animate-drawer-left {
    animation: slide-in-left 0.22s ease-out;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade {
    animation: fade-in 0.2s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .animate-drawer,
    .animate-drawer-left,
    .animate-fade {
        animation: none;
    }
}
