/* =========================================================
   ANGELS INSTRUMENTS - OFFICIAL STYLESHEET
   Refined Design Touches, Polish & Industrial Metrology Theme
   ========================================================= */

/* =========================================================
   1. ADVANCED ANTI-COPY, ANTI-DRAG & MEDIA PROTECTION
   ========================================================= */
* {
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
}

body,
img,
video,
canvas,
svg {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

/* Screen Capture & Print Screen Mitigation */
@media print {
  body {
    display: none !important;
  }
}

/* Anti-Screenshot, Tab-Switch & Window Blur Filter */
body.window-blur {
  filter: blur(20px) grayscale(100%) !important;
  transition: filter 0.08s ease-in-out;
  pointer-events: none !important;
}

/* Re-enable input & form interactions so RFQ / Contact works smoothly */
input,
textarea,
select,
button,
a,
.cursor-pointer,
[onclick],
.hover-zoom-target {
  -webkit-user-select: auto !important;
  user-select: auto !important;
  pointer-events: auto !important;
}

/* Watermark Overlay container */
.protected-media-container {
  position: relative;
  overflow: hidden;
}

.protected-media-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.001);
  pointer-events: none;
}

/* =========================================================
   2. GLOBAL POLISH & INDUSTRIAL TYPOGRAPHY
   ========================================================= */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: #fcfbf7;
  color: #1c1917;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Logo Glow & Hero Animations */
@keyframes pulseGlowLogo {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(6, 78, 59, 0.25));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 22px rgba(180, 83, 9, 0.45));
    transform: scale(1.03);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-logo {
  animation: pulseGlowLogo 2.5s infinite ease-in-out;
}

.animate-fade-1 {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-2 {
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
  opacity: 0;
}

.animate-fade-3 {
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
  opacity: 0;
}

.splash-exit {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease-in-out;
}

/* Logo Container Specs */
.logo-badge-container {
  width: 124px !important;
  height: 124px !important;
  padding: 10px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.logo-badge-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
}

/* Sidebar Drawer Slide Transition */
.sidebar-drawer {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slider Carousel Transition */
.slider-slide {
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1) !important;
  transform: none !important;
}

/* =========================================================
   3. HIGH-PRECISION HOVER-TO-ZOOM MAGNIFIER
   ========================================================= */
.hover-zoom-container {
  position: relative;
  overflow: hidden !important;
  cursor: crosshair !important;
}

#modalProductImg,
.hover-zoom-target,
img[data-hover-zoom="true"] {
  transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1),
    transform-origin 0.15s cubic-bezier(0.25, 1, 0.5, 1) !important;
  will-change: transform, transform-origin;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  cursor: crosshair !important;
}

#modalProductImg:hover,
.hover-zoom-target:hover,
img[data-hover-zoom="true"]:hover {
  transform: scale(2.4) !important;
  z-index: 40 !important;
  position: relative !important;
}

/* =========================================================
   4. TECHNICAL SPECIFICATIONS TABLE
   ========================================================= */
.spec-table-container {
  border: 1px solid #e7e5e4;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.spec-table-header {
  background-color: #f5f5f4;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid #e7e5e4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.spec-table tbody tr {
  border-bottom: 1px solid #f5f5f4;
  transition: background-color 0.15s ease-in-out;
}

.spec-table tbody tr:last-child {
  border-bottom: none;
}

.spec-table tbody tr:hover {
  background-color: #fafaf9;
}

.spec-key {
  padding: 0.625rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1c1917;
  width: 42%;
  vertical-align: top;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.spec-value {
  padding: 0.625rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #047857;
  width: 58%;
  vertical-align: top;
  line-height: 1.4;
  word-break: break-word;
}

/* Modal Slider Dots */
.modal-dot-item {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.modal-dot-item.active-dot {
  background-color: #b45309;
  width: 16px;
}

/* Handmade Paper Machinery Styles */
.handmade-single-grid {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 2.5rem;
}

.handmade-card-banner {
  width: 100%;
  height: 18rem;
  object-fit: contain;
  background-color: #ffffff;
  padding: 1rem;
}

@media (min-width: 640px) {
  .handmade-card-banner {
    height: 24rem;
  }
}

#productDetailModal.handmade-modal > div {
  max-width: 68rem !important;
  width: 95% !important;
}

/* =========================================================
   5. FLOATING QUICK ACTION BUTTONS
   ========================================================= */
.floating-actions-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}

.whatsapp-float-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #25D366;
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.8125rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
}

.whatsapp-float-btn:hover {
  background-color: #1eb855;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.back-to-top-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: #1c1917;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-top-btn:hover {
  background-color: #064e3b;
  transform: translateY(-2px);
}

/* Active Nav Link Accent */
.nav-link-active {
  color: #064e3b !important;
  font-weight: 800 !important;
  position: relative;
}

.nav-link-active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #064e3b;
  border-radius: 2px;
}

/* Page Header Banner (Breadcrumbs Banner) */
.page-hero-banner {
  background: linear-gradient(135deg, #1c1917 0%, #292524 60%, #064e3b 100%);
  position: relative;
  overflow: hidden;
}

.page-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(180, 83, 9, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
