/* =========================================================
   ADVANCED ANTI-COPY, ANTI-DRAG & MEDIA PROTECTION
   ========================================================= */

/* 1. Global Text Selection & Drag Prevention */
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-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  -user-drag: none !important;

  -webkit-touch-callout: none !important;
}

/* 2. Media Protection */
img,
video {
  pointer-events: auto !important;
  -webkit-menu-visibility: hidden;
}

video::-webkit-media-controls-enclosure {
  overflow: hidden;
}

video::-webkit-media-controls-panel {
  width: calc(100% + 30px);
}

/* 3. Screen Capture Mitigation */
body.window-blur {
  filter: blur(16px) grayscale(100%);
  transition: filter 0.1s ease-in-out;
  pointer-events: none !important;
}

/* Watermark Overlay protection over images */
.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;
}

/* 4. Interactive Elements */
button,
a,
input,
textarea,
select,
.cursor-pointer,
[onclick],
.hover-zoom-target {
  pointer-events: auto !important;
}

.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}

/* Intro Animations & Glow for Logo */
@keyframes pulseGlowLogo {

  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(6, 78, 59, 0.3));
    transform: scale(1);
  }

  50% {
    filter: drop-shadow(0 0 22px rgba(180, 83, 9, 0.5));
    transform: scale(1.04);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  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.8s ease-in-out;
}

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

/* Page Section View Switcher */
.page-section {
  display: none;
}

.page-section.active-page {
  display: block;
  animation: fadeInUp 0.4s ease-out forwards;
}

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

/* Force Exact Logo Badge Dimensions */
.logo-badge-container {
  width: 132px !important;
  height: 132px !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;
}

/* =========================================================
   HIGH-PRECISION HOVER-TO-ZOOM (MAGNIFIER LENS EFFECT)
   ========================================================= */

.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.5) !important;
  z-index: 40 !important;
  position: relative !important;
}

/* =========================================================
   SPECIFICATIONS TABLE STYLING
   ========================================================= */
.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-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  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-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #047857;
  width: 58%;
  vertical-align: top;
  line-height: 1.4;
  word-break: break-word;
}

/* =========================================================
   BORDERLESS OVERLAY SLIDE BAR FOR MODAL IMAGES
   ========================================================= */
#modalImageSliderTrack img {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.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
   ========================================================= */
.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;
}

#productDetailModal.handmade-modal .modal-image-viewport {
  height: 22rem !important;
}

@media (min-width: 640px) {
  #productDetailModal.handmade-modal .modal-image-viewport {
    height: 28rem !important;
  }
}

body {
  overflow-x: hidden;
}