/* ==========================================================================
   AM FURNITURE HUB - LUXURY BESPOKE ATELIER
   Production Stylesheet & Mobile/Desktop Optimization
   ========================================================================== */

@layer base {
  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
  }

  h1, h2, h3 {
    text-wrap: balance;
  }
}

/* Custom Scrollbar for Luxury Aesthetics */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f9f3eb;
}

::-webkit-scrollbar-thumb {
  background: #cdc5bd;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8C6F5A;
}

/* Prevent unwanted horizontal overflow */
.no-horizontal-scroll {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Material Symbols icon styling */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
}

/* Smooth Interactive Micro-animations */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-bounce-in {
  animation: bounceIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

/* Hotspots interactive styling on touch screens */
.hotspot-pin {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hotspot-pin:active {
  transform: scale(1.2);
}

/* Touch target optimizations for mobile devices */
@media (max-width: 768px) {
  button, a, input, select, textarea {
    touch-action: manipulation;
  }
  
  input, select, textarea {
    font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
  }
}

/* Image aspect ratio container protection */
img {
  max-width: 100%;
  height: auto;
}

/* Selection Color */
::selection {
  background-color: #fdd9bf;
  color: #171614;
}

