/* Page-specific overrides for home, portfolio, blog, etc. */

/* Sticky Banner Wrapper */
.sticky-banner-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffd0d0;
}

.sticky-banner-wrapper .modern-navbar {
  position: relative;
  box-shadow: none;
}

/* CRITICAL FIX: Force dropdowns below navbar */
.modern-navbar {
  position: relative !important;
  overflow: visible !important;
  transform: none !important;
}

.modern-navbar .navbar-wrapper {
  overflow: visible !important;
}

.modern-navbar .navbar-actions {
  overflow: visible !important;
  display: flex !important;
  gap: 8px !important;
}

.modern-navbar .action-btn,
.modern-navbar #wishlistToggle,
.modern-navbar #cartToggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
}

.modern-navbar .action-item,
.modern-navbar .wishlist-dropdown-wrapper,
.modern-navbar .cart-dropdown-wrapper {
  position: relative !important;
  overflow: visible !important;
}

.modern-navbar .action-dropdown,
.modern-navbar #cartPanel,
.modern-navbar #wishlistPanel {
  position: absolute !important;
  right: 0 !important;
  left: auto !important;
  z-index: 999999 !important;
  background: white !important;
  width: 400px !important;
  max-height: 500px !important;
}

@media (max-width: 639px) {
  .modern-navbar .action-dropdown,
  .modern-navbar #cartPanel,
  .modern-navbar #wishlistPanel {
    position: fixed !important;
    top: 60px !important;
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
    max-width: 400px !important;
  }
}

/* Product Title Link */
.product-title-link {
  text-decoration: none !important;
  color: #202023 !important;
  display: block !important;
  cursor: pointer !important;
  transition: color 0.3s ease;
  position: relative;
  z-index: 10;
}

.product-title-link:hover {
  color: #fcb1d8 !important;
}

.product-title-link h3 {
  color: inherit;
  transition: color 0.3s ease;
  margin: 0;
  pointer-events: none;
}

.product-title-link:hover h3 {
  color: #fcb1d8 !important;
}

/* Contact Page Mobile */
@media (max-width: 768px) {
  #contactForm > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .contact-form-wrapper {
    padding: 24px !important;
    border-radius: 12px !important;
  }
  .contact-section {
    padding: 40px 0 !important;
  }
  section[style*="padding: 100px"] {
    padding: 60px 0 !important;
  }
  h1[style*="font-size: 2.5rem"] {
    font-size: 1.8rem !important;
  }
  h2[style*="font-size: 2rem"] {
    font-size: 1.5rem !important;
  }
  #contactInfoSection div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  input, textarea, button {
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {
  .contact-form-wrapper {
    padding: 20px !important;
  }
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
