/* ==========================================================================
   INTMO GLOBAL Design System Stylesheet
   Murni CSS untuk animasi, transisi modal, drawer, hotspots & scrollbar
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --color-brand-primary: #C86446;
  --color-brand-accent: #E27D60;
  --color-wood-dark: #2C241E;
  --color-wood-subtle: #4A3E34;
  --color-sand-bg: #FAF8F5;
  --color-sand-card: #F5EDE4;
  --color-sand-border: #E8E1D9;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--color-sand-bg);
  color: #2C2A29;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
}

.font-cinzel {
  font-family: 'Cinzel', serif;
}

/* Custom aesthetic scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

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

::-webkit-scrollbar-thumb {
  background: #D5C7B8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #B9A492;
}

/* ==========================================================================
   MODAL & DRAWER STRICT VISIBILITY RULES
   ========================================================================== */
.modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: flex !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease-in-out, visibility 0.25s ease-in-out !important;
}

.modal-backdrop.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-content-box {
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease-in-out;
}

.modal-backdrop.active .modal-content-box {
  transform: scale(1) !important;
  opacity: 1 !important;
}

/* Slide-over Drawer (Cart & Mobile Menu) */
.drawer-panel {
  transform: translateX(100%) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.modal-backdrop.active .drawer-panel {
  transform: translateX(0) !important;
}

.drawer-panel-left {
  transform: translateX(-100%) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.modal-backdrop.active .drawer-panel-left {
  transform: translateX(0) !important;
}

/* Hotspot Interactive Pins */
.hotspot-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 20;
}

.hotspot-pulse {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(226, 125, 96, 0.5);
  animation: hotspotPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes hotspotPing {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.hotspot-tooltip {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease-in-out;
  pointer-events: none;
}

.hotspot-pin:hover .hotspot-tooltip,
.hotspot-pin:focus-within .hotspot-tooltip,
.hotspot-pin.active .hotspot-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  transform: translateY(12px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-item.show {
  transform: translateY(0);
  opacity: 1;
}

/* Range input customization */
input[type=range] {
  accent-color: #C86446;
}

/* Code block styles */
pre code {
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
}

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

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