/*! Mitić Enterijer - Custom Styles */

/* Base resets */
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #111111; background: #fff; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body ::selection { background: #111111; color: #fff; }
h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; letter-spacing: -0.025em; }
header { position: sticky; top: 0; z-index: 40; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Columns for gallery masonry */
.columns-1 { columns: 1; }
.columns-2 { columns: 2; }
.columns-3 { columns: 3; }
.columns-4 { columns: 4; }
.break-inside-avoid { break-inside: avoid; }

/* Lightbox */
.lightbox-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.95); backdrop-filter: blur(4px); padding: 1rem 1rem 7.5rem; touch-action: pan-y; }
.lightbox-overlay img { max-height: calc(100vh - 10rem); max-width: 92vw; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; color: rgba(255,255,255,0.65); transition: color 0.2s; z-index: 110; padding: 0.5rem; background: none; border: none; cursor: pointer; }
.lightbox-close:hover { color: #fff; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.72); transition: color 0.2s; z-index: 110; padding: 0.5rem; background: rgba(0,0,0,0.2); border: none; cursor: pointer; }
.lightbox-nav:hover { color: #fff; }
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }
.lightbox-counter { position: absolute; bottom: 5.75rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.55); font-size: 0.75rem; letter-spacing: 0.1em; font-family: monospace; }
.lightbox-thumbs { position: absolute; left: 0; right: 0; bottom: 1rem; z-index: 110; display: flex; gap: 0.5rem; overflow-x: auto; padding: 0 1rem 0.25rem; justify-content: flex-start; scrollbar-width: none; }
.lightbox-thumbs::-webkit-scrollbar { display: none; }
.lightbox-thumb { width: 3.75rem; height: 3.75rem; flex: 0 0 auto; border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.08); padding: 0; opacity: 0.58; cursor: pointer; overflow: hidden; transition: opacity 0.2s, border-color 0.2s; }
.lightbox-thumb.is-active { opacity: 1; border-color: #fff; }
.lightbox-thumb img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; display: block; }
@media (min-width: 768px) {
  .lightbox-overlay { padding: 1.5rem 1.5rem 7rem; }
  .lightbox-overlay img { max-height: calc(100vh - 9rem); max-width: 90vw; }
  .lightbox-close { top: 2rem; right: 2rem; }
  .lightbox-prev { left: 2rem; }
  .lightbox-next { right: 2rem; }
  .lightbox-counter { bottom: 5.5rem; font-size: 0.875rem; }
  .lightbox-thumbs { justify-content: center; bottom: 1.25rem; }
}

/* Sidecart */
div#sidecart-overlay.sidecart-overlay { position: fixed !important; inset: 0 !important; background: rgba(0,0,0,0.4) !important; backdrop-filter: blur(4px) !important; z-index: 9000 !important; transition: opacity 0.3s !important; }
div#sidecart-panel.sidecart-panel { position: fixed !important; top: 0 !important; bottom: 0 !important; right: 0 !important; width: 100% !important; max-width: 440px !important; background: #fff !important; z-index: 9001 !important; display: flex !important; flex-direction: column !important; transform: translateX(100%) !important; transition: transform 0.5s cubic-bezier(0.22,1,0.36,1) !important; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25) !important; }
div#sidecart-panel.sidecart-panel.sidecart-open { transform: translateX(0) !important; }

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; background: #fff; z-index: 40; display: flex; flex-direction: column; justify-content: center; align-items: center; transform: translateY(-100%); transition: transform 0.5s ease-in-out; }
.mobile-menu.open { transform: translateY(0); }

/* Cookie consent */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: #111; color: #fff; padding: 1.5rem; }
@media (min-width: 768px) { .cookie-banner { padding: 2rem; } }

/* Back to top */
.back-to-top { position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 40; width: 3rem; height: 3rem; background: #111; color: #fff; border-radius: 9999px; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); transition: all 0.3s; opacity: 0; pointer-events: none; border: none; cursor: pointer; }
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { opacity: 0.8; }

/* WhatsApp */
.whatsapp-btn { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 40; width: 3.5rem; height: 3.5rem; background: #25D366; border-radius: 9999px; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); transition: all 0.3s; }
.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }

/* Fade-in animation */
.fade-in { opacity: 0; transform: translateY(40px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

/* Product detail decor modal */
.decor-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.95); backdrop-filter: blur(4px); padding: 1.5rem; }
.decor-modal img { max-height: 85vh; max-width: 90vw; object-fit: contain; user-select: none; }
