/** 
 * Tailwind CSS untuk Manor Mebel - Versi Local Extended
 * Ini adalah versi lengkap untuk fallback saat CDN gagal
 */

/* Reset dan Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

body {
    margin: 0;
    line-height: inherit;
}

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-serif { font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; }
.font-sans { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; }

.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Colors */
.bg-white { background-color: #ffffff; }
.bg-stone-50 { background-color: #fafaf9; }
.bg-stone-100 { background-color: #f5f5f4; }
.bg-stone-200 { background-color: #e7e5e4; }
.bg-stone-700 { background-color: #44403c; }
.bg-stone-800 { background-color: #292524; }
.bg-stone-900 { background-color: #1c1917; }

.text-white { color: #ffffff; }
.text-stone-100 { color: #f5f5f4; }
.text-stone-200 { color: #e7e5e4; }
.text-stone-300 { color: #d6d3d1; }
.text-stone-400 { color: #a8a29e; }
.text-stone-500 { color: #78716c; }
.text-stone-600 { color: #57534e; }
.text-stone-700 { color: #44403c; }
.text-stone-900 { color: #1c1917; }

/* Custom Wood Colors */
.bg-wood-light { background-color: #E5D3B3; }
.bg-wood-medium { background-color: #D4A373; }
.bg-wood-dark { background-color: #966F4A; }

.text-wood-light { color: #E5D3B3; }
.text-wood-medium { color: #D4A373; }
.text-wood-dark { color: #966F4A; }

.text-wood-medium\/80 { color: rgb(212 163 115 / 0.8); }

/* Layout */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.max-w-7xl { max-width: 80rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

@media (min-width: 640px) {
    .container { max-width: 640px; }
    .sm\:p-8 { padding: 2rem; }
    .sm\:text-lg { font-size: 1.125rem; }
    .sm\:text-3xl { font-size: 1.875rem; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
    .container { max-width: 768px; }
    .md\:p-8 { padding: 2rem; }
    .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .md\:py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
    .md\:text-sm { font-size: 0.875rem; }
    .md\:text-base { font-size: 1rem; }
    .md\:text-2xl { font-size: 1.5rem; }
    .md\:text-3xl { font-size: 1.875rem; }
    .md\:h-16 { height: 4rem; }
    .md\:w-5 { width: 1.25rem; }
    .md\:h-5 { height: 1.25rem; }
    .md\:block { display: block; }
    .md\:hidden { display: none; }
    .md\:flex { display: flex; }
    .md\:grid { display: grid; }
    .md\:space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: 2rem; }
    .md\:h-14 { height: 3.5rem; }
    .md\:-ml-10 { margin-left: -2.5rem; }
}

@media (min-width: 1024px) {
    .container { max-width: 1024px; }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

@media (min-width: 1280px) {
    .container { max-width: 1280px; }
}

/* Spacing */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

.m-4 { margin: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.ml-8 { margin-left: 2rem; }
.-ml-8 { margin-left: -2rem; }
.-ml-10 { margin-left: -2.5rem; }

.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }

.my-10 { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }

/* Layout */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }

.gap-0 { gap: 0px; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }
.space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: 2rem; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.h-4 { height: 1rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-48 { height: 12rem; }
.h-auto { height: auto; }
.h-full { height: 100%; }
.h-0\.5 { height: 0.125rem; }

.w-4 { width: 1rem; }
.w-6 { width: 1.5rem; }
.w-auto { width: auto; }
.w-full { width: 100%; }
.w-72 { width: 18rem; }
.w-1\/2 { width: 50%; }
.w-1\/3 { width: 33.333333%; }
.w-2\/3 { width: 66.666667%; }
.w-1\/4 { width: 25%; }
.w-3\/4 { width: 75%; }

.min-h-screen { min-height: 100vh; }
.min-h-\[80vh\] { min-height: 80vh; }

.max-h-\[80vh\] { max-height: 80vh; }
.max-h-64 { max-height: 16rem; }

/* Borders */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }

.border-stone-100 { border-color: #f5f5f4; }
.border-stone-200 { border-color: #e7e5e4; }
.border-stone-700 { border-color: #44403c; }

.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded { border-radius: 0.25rem; }
.rounded-xl { border-radius: 0.75rem; }

/* Shadows */
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }

/* Transitions */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* Transforms */
.translate-y-1\/2 { transform: translateY(-50%); }
.translate-y-0\.5 { transform: translateY(0.125rem); }

.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }

.rotate-180 { transform: rotate(180deg); }

/* Positioning */
.absolute { position: absolute; }
.relative { position: relative; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.top-0 { top: 0; }
.top-1\/2 { top: 50%; }
.top-4 { top: 1rem; }
.top-full { top: 100%; }

.right-0 { right: 0; }
.right-4 { right: 1rem; }

.left-0 { left: 0; }
.left-4 { left: 1rem; }

.bottom-0 { bottom: 0; }

/* Z-index */
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-\[60\] { z-index: 60; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-y-scroll { overflow-y: scroll; }

/* Object Fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-center { object-position: center; }

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

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.leading-relaxed { line-height: 1.625; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }

.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }

.italic { font-style: italic; }

/* Dark Mode Support */
.dark\:bg-stone-700 { background-color: #44403c; }
.dark\:bg-stone-800 { background-color: #292524; }
.dark\:bg-stone-900 { background-color: #1c1917; }
.dark\:bg-stone-600 { background-color: #57534e; }

.dark\:text-stone-100 { color: #f5f5f4; }
.dark\:text-stone-200 { color: #e7e5e4; }
.dark\:text-stone-300 { color: #d6d3d1; }
.dark\:text-stone-400 { color: #a8a29e; }
.dark\:text-stone-500 { color: #78716c; }

.dark\:border-stone-600 { border-color: #57534e; }
.dark\:border-stone-700 { border-color: #44403c; }
.dark\:border-stone-600 { border-color: #57534e; }

.dark\:brightness-0 { filter: brightness(0); }
.dark\:invert { filter: invert(1); }

.dark\:hover\:text-wood-light:hover { color: #E5D3B3; }
.dark\:hover\:text-stone-200:hover { color: #e7e5e4; }

/* Responsive Utilities */
@media (min-width: 640px) {
    .sm\:p-8 { padding: 2rem; }
    .sm\:text-lg { font-size: 1.125rem; }
    .sm\:text-3xl { font-size: 1.875rem; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
    .md\:p-8 { padding: 2rem; }
    .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .md\:py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
    .md\:text-sm { font-size: 0.875rem; }
    .md\:text-base { font-size: 1rem; }
    .md\:text-2xl { font-size: 1.5rem; }
    .md\:text-3xl { font-size: 1.875rem; }
    .md\:h-16 { height: 4rem; }
    .md\:w-5 { width: 1.25rem; }
    .md\:h-5 { height: 1.25rem; }
    .md\:block { display: block; }
    .md\:hidden { display: none; }
    .md\:flex { display: flex; }
    .md\:grid { display: grid; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: 2rem; }
    .md\:h-14 { height: 3.5rem; }
    .md\:-ml-10 { margin-left: -2.5rem; }
    .md\:gap-6 { gap: 1.5rem; }
}

@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
    .container { max-width: 1280px; }
}

/* Custom Animations */
@keyframes wa-shake {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(15deg); }
    30% { transform: rotate(-15deg); }
    45% { transform: rotate(15deg); }
    60% { transform: rotate(-15deg); }
    75% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.wa-shake {
    animation: wa-shake 0.5s ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px #3b82f6; }
.focus\:border-wood-dark:focus { border-color: #966F4A; }

/* Performance optimizations */
.product-card {
    will-change: transform;
    transform: translateZ(0);
}

.hero-section {
    will-change: opacity;
}

/* Safe content injection */
.content-safe {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Custom Utilities */
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur { backdrop-filter: blur(8px); }

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

/* Fallback styles for when Tailwind CDN fails */
.tailwind-fallback .bg-stone-100\/80 { background-color: rgb(245 245 244 / 0.8); }
.tailwind-fallback .bg-stone-900\/80 { background-color: rgb(28 25 23 / 0.8); }

.tailwind-fallback .hover\:bg-stone-100:hover { background-color: #fafaf9; }
.tailwind-fallback .hover\:bg-stone-200:hover { background-color: #e7e5e4; }
.tailwind-fallback .hover\:bg-wood-medium:hover { background-color: #D4A373; }

.tailwind-fallback .hover\:text-wood-dark:hover { color: #966F4A; }
.tailwind-fallback .hover\:text-stone-700:hover { color: #44403c; }

.tailwind-fallback .hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }

/* Grid responsive */
@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Custom Styles for Manor Mebel - Performance & Anti-Flash Protection */

html {
    scroll-behavior: auto;
}

/* Disable only problematic animations and transitions */
.hero-section,
.hero-content,
.hero-text {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
}

/* Ensure product grid is visible immediately */
#product-grid {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
}

/* Disable hover transitions that might cause delay */
.product-card .cart-btn,
.product-card .product-img {
    transition: none !important;
}

/* Ensure hero image loads immediately */
.hero-section img {
    animation: none !important;
    transform: none !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    will-change: auto !important;
}

/* Hero Anti-Flash Protection */
.hero-section {
    contain: layout style paint !important;
    transform: translateZ(0) !important; /* Force GPU layer */
    -webkit-transform: translateZ(0) !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    perspective: 1000px !important;
    -webkit-perspective: 1000px !important;
}

.hero-section * {
    contain: layout style paint !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}

/* Prevent hero flash with proper containment */
.hero-section {
    position: relative !important;
    overflow: hidden !important;
    height: 600px !important;
    background: #1c1917 !important;
}

.hero-section img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 45% !important;
}

/* Ensure all images load immediately without delay */
img {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
}

/* Force all content to be visible immediately */
body > * {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
}

/* Ensure no hidden elements */
.hidden {
    display: none !important; /* Only allow display:none, not opacity/visibility */
}

/* Ensure all sections visible */
section,
div,
nav,
header,
footer {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
}

/* Ensure category buttons and mega menu visible immediately */
.filter-btn,
.category-btn,
.subcategory-btn {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
}

/* Ensure mega menu structure visible immediately */
#main-category-list,
#submenu-grid {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
}

/* Ensure all navigation and buttons visible immediately */
nav,
nav *,
button,
button * {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: none;
}

/* Product Card Hover Effects */
.product-card .cart-btn {
    transition: none;
}

.product-card:hover .cart-btn {
    transform: none;
}

.product-card .product-img {
    transition: none;
}

.product-card:hover .product-img {
    transform: none;
}

/* Custom Scrollbar for Filters */
#category-filters::-webkit-scrollbar {
    height: 4px;
}

#category-filters::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#category-filters::-webkit-scrollbar-thumb {
    background: #D4A373;
    border-radius: 4px;
}

#category-filters::-webkit-scrollbar-thumb:hover {
    background: #966F4A;
}

/* Disable all animations/transitions inside catalog grid */
#product-grid * {
    transition: none !important;
    animation: none !important;
}

/* Ensure consistent initial render - force minimum heights */
.product-card {
    min-height: 400px;
}

.product-card .aspect-w-1 {
    min-height: 280px;
    background: #f5f5f5;
}

/* Ensure product grid is visible immediately */
#product-grid {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Header logo styling - preserve Tailwind dark mode functionality */
/* Only apply filter:none in light mode */
@media (prefers-color-scheme: light) {
    header img[alt*="Manor Mebel Logo"],
    nav img[alt*="Manor Mebel Logo"] {
        filter: none !important;
        -webkit-filter: none !important;
    }

    header img[alt*="Manor Mebel Text"],
    nav img[alt*="Manor Mebel Text"] {
        filter: none !important;
        -webkit-filter: none !important;
    }
}

/* Force dark mode logo filters - Ultra specific selectors */
@media (prefers-color-scheme: dark) {
    /* Use multiple ultra-specific selectors to override everything */
    header img[alt*="Manor Mebel Logo"],
    nav img[alt*="Manor Mebel Logo"],
    header a img[alt*="Manor Mebel Logo"],
    nav a img[alt*="Manor Mebel Logo"],
    .dark img[alt*="Manor Mebel Logo"],
    [data-theme="dark"] img[alt*="Manor Mebel Logo"] {
        filter: brightness(0) invert(1) !important;
        -webkit-filter: brightness(0) invert(1) !important;
        -moz-filter: brightness(0) invert(1) !important;
        -ms-filter: brightness(0) invert(1) !important;
        -o-filter: brightness(0) invert(1) !important;
    }

    header img[alt*="Manor Mebel Text"],
    nav img[alt*="Manor Mebel Text"],
    header a img[alt*="Manor Mebel Text"],
    nav a img[alt*="Manor Mebel Text"],
    .dark img[alt*="Manor Mebel Text"],
    [data-theme="dark"] img[alt*="Manor Mebel Text"] {
        filter: brightness(0) invert(1) !important;
        -webkit-filter: brightness(0) invert(1) !important;
        -moz-filter: brightness(0) invert(1) !important;
        -ms-filter: brightness(0) invert(1) !important;
        -o-filter: brightness(0) invert(1) !important;
    }
    
    /* Also apply to Tailwind dark: classes since darkMode is 'media' */
    img.dark\:brightness-0.dark\:invert,
    .dark img.dark\:brightness-0.dark\:invert,
    img[class*="dark:brightness-0"][class*="dark:invert"] {
        filter: brightness(0) invert(1) !important;
        -webkit-filter: brightness(0) invert(1) !important;
        -moz-filter: brightness(0) invert(1) !important;
        -ms-filter: brightness(0) invert(1) !important;
        -o-filter: brightness(0) invert(1) !important;
    }
}

/* Hero section consistent rendering */
#katalog {
    visibility: visible !important;
    opacity: 1 !important;
}