/* ==========================================================================
   Flower & Co - Custom Atelier Styles
   Theme: Pistachio Green (#769c5e, #486337) & Pure Crisp White (#F8FAF7)
   ========================================================================== */

/* Enable smooth scrolling across page */
html {
  scroll-behavior: smooth;
}

/* Header & Navigation z-index & Clickability Guarantees */
header {
  position: sticky;
  top: 0;
  z-index: 100 !important;
}

header * {
  pointer-events: auto;
}

.nav-link,
header button,
header a,
#customerNavLinks a,
#mobileMenuDropdown a,
#mobileMenuDropdown button {
  cursor: pointer;
  position: relative;
  z-index: 110;
  pointer-events: auto !important;
}

/* Custom pattern dots for hero banner */
.pattern-dots {
  background-image: radial-gradient(#5c7e47 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Hide scrollbar for category pills and horizontal tabs */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Native dialog positioning, animation & backdrop */
dialog:not([open]) {
  display: none !important;
  pointer-events: none !important;
}

dialog[open] {
  display: flex !important;
  flex-direction: column;
  position: fixed !important;
  inset: 0 !important;
  margin: auto !important;
  z-index: 9999 !important;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

dialog::backdrop {
  background: rgba(15, 23, 10, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998 !important;
  animation: backdropFadeIn 0.25s ease-out;
}

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

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Drag and Drop Zone styling */
.dropzone-active {
  border-color: #5c7e47 !important;
  background-color: #eaf1e5 !important;
  transform: scale(1.01);
}

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

::-webkit-scrollbar-track {
  background: #f5f8f3;
  border-radius: 9999px;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #769c5e;
}

/* Image zoom hover effect */
.product-card-img {
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.group:hover .product-card-img {
  transform: scale(1.06);
}

/* Custom shadow utilities */
.shadow-2xs {
  box-shadow: 0 1px 2px 0 rgba(72, 99, 55, 0.05);
}
