/* Import Montserrat font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Hide page title and setup full viewport background */
.entry-title, .page-title, h1.entry-title { 
  display: none !important; 
}

/* Smooth scroll behavior - SATISFYING */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
html, body, .site, .site-content, .content-area, main, article {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* PLUGIN SCOPE - Only affect plugin content, not theme elements */
.mel-search-section,
.mel-search-section *,
.mel-gallery-section,
.mel-gallery-section *,
.mel-modal,
.mel-modal *,
.mel-cart,
.mel-cart * {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
}

/* Force CSS to load properly */
* {
  box-sizing: border-box;
}

/* CSS Updated: 2025-12-09 21:50:46 - Force Cache Refresh */

/* AGGRESSIVE TOP SPACING REMOVAL */
html, body, #page, .site, .site-content, .content-area, main, article, .entry-content, .page-content, .hentry, .post, .page {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* WordPress admin bar override */
html {
  margin-top: 0 !important;
}

body.admin-bar {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Pull hero section up to cover theme header gap */
.mel-search-section, div.mel-search-section {
  margin-top: -70px !important;
}

/* Search Section - FORCE TO TOP */
.mel-search-section, div.mel-search-section {
  margin-top: 0 !important;
  padding-top: 0 !important;
  position: relative !important;
  top: 0 !important;
}

/* Search Section with Video Background - PHASE 2 IMPLEMENTATION */
.mel-search-section, div.mel-search-section {
  position: relative !important;
  background: #000 !important; /* Simple fallback color */
  padding: 80px 0 40px !important;
  min-height: 350px !important;
  width: 100% !important;
  margin-top: -80px !important;
  overflow: hidden !important;
}

/* Video Background */
.mel-search-section .mel-video-background {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  width: auto !important;
  height: auto !important;
  transform: translate(-50%, -50%) !important;
  z-index: 1 !important;
}

/* Video Overlay */
.mel-search-section::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3)) !important;
  z-index: 2 !important;
}
  margin-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
}

/* Gallery Section - Clean Layout */
.mel-gallery-section {
  background: #f8f9fa !important;
  min-height: 100vh !important;
  padding: 60px 0 40px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.mel-gallery-section * {
  max-width: none !important;
}

.mel-gallery-section .mel-container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mel-gallery-section .mel-gallery {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 20px !important;
}

/* Container and layout */
.mel-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}

/* Override container for gallery section */
.mel-gallery-section .mel-container {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Remove padding from search section container */
.mel-search-section .mel-container {
  padding: 20px 20px 0 20px !important;
  margin: 0 auto !important;
  position: relative !important;
  z-index: 3 !important;
}

.mel-search-section .mel-header {
  margin-bottom: 0 !important;
}

.mel-search-section .mel-search {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}

/* ===== MOBILE-FIRST OVERFLOW FIXES ===== */

/* Prevent horizontal overflow on all devices */
.mel-search-section {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

.mel-search-section .mel-container {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.mel-hero-content, .mel-header, .mel-hero-right, .mel-search {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* ===== ENHANCED HERO SECTION RESPONSIVENESS ===== */

/* Video Background Enhancements */
.mel-video-background {
  object-fit: cover !important;
  object-position: center !important;
}

/* Hero Animation Enhancements */
.mel-hero-content {
  animation: heroFadeIn 1s ease-out !important;
}

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

/* Desktop Layout */
.mel-search-section .mel-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  max-width: 1400px !important;
  width: 100% !important;
  padding: 0 40px !important;
  margin: 0 auto !important;
  gap: 60px !important;
}

.mel-hero-content {
  display: contents;
}

.mel-header {
  flex: 1 !important;
  text-align: left !important;
  margin: 0 !important;
  padding-right: 60px !important;
}

.mel-header h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
  margin: 0 !important;
  color: white !important;
  font-weight: 800 !important;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.8) !important;
  line-height: 0.9 !important;
  letter-spacing: -0.02em !important;
}

.mel-hero-right {
  flex: 1 !important;
  text-align: left !important;
  max-width: 600px !important;
}

/* ===== PERFECT HERO ALIGNMENT - BEAUTIFUL & SMART ===== */

/* Hero Right Section - Perfect Centering */
.mel-hero-right {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 650px !important;
  margin: 0 auto !important;
}

.mel-hero-right p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem) !important;
  color: #f8f9fa !important;
  margin: 0 0 40px 0 !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7) !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  max-width: 600px !important;
}

/* Search Container - Perfect Alignment */
.mel-search {
  margin: 0 !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 600px !important;
}

/* Search Input Wrapper - For Icon Positioning */
.mel-search > div {
  position: relative !important;
  width: 100% !important;
  max-width: 500px !important;
  display: flex !important;
  align-items: center !important;
}

/* Search Icon - Perfect Positioning */
.mel-search .search-icon {
  position: absolute !important;
  left: 20px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 20px !important;
  height: 20px !important;
  color: #666 !important;
  z-index: 100 !important;
  pointer-events: none !important;
}

/* Search Input - Optimal Width */
.mel-search input {
  width: 100% !important;
  padding: 18px 25px 18px 55px !important;
  font-size: clamp(1rem, 2vw, 1.1rem) !important;
  border: none !important;
  border-radius: 50px !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4) !important;
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.3s ease !important;
  font-family: inherit !important;
}

/* Hero Filters - Perfect Alignment with Search */
.mel-search .mel-hero-filters-duplicate,
.mel-search .mel-hero-filters {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 25px 0 0 0 !important;
  flex-wrap: wrap !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 500px !important;
}

.mel-search input:focus {
  outline: none !important;
  box-shadow: 0 12px 35px rgba(0,0,0,0.5) !important;
  background: rgba(255,255,255,1) !important;
  transform: translateY(-2px) !important;
}

.mel-search input:focus ~ .search-icon,
.mel-search:hover .search-icon {
  color: #007cba !important;
}

/* Cart Header Button - Modern Floating Action Button */
.mel-cart-header {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
}

.mel-cart-button {
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
  border: 2px solid #333333;
  border-radius: 8px;
  padding: 16px 24px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.2);
  font-size: 15px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.mel-cart-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.mel-cart-button:hover::before {
  left: 100%;
}

.mel-cart-button * {
  pointer-events: none;
}

.mel-cart-button:hover {
  background: linear-gradient(135deg, #005a87 0%, #003d5c 100%);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 
    0 15px 40px rgba(0,124,186,0.6),
    0 0 0 1px rgba(255,255,255,0.2) inset,
    0 1px 0 rgba(255,255,255,0.3) inset;
}

.mel-cart-button:active {
  transform: translateY(-2px) scale(1.05);
  transition: all 0.1s ease;
}

/* Subtle pulse animation when cart has items */
@keyframes cartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.mel-cart-button.has-items {
  animation: cartPulse 2s ease-in-out infinite;
}

/* Enhanced cart icon styling */
.mel-cart-button .cart-icon {
  font-size: 18px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

/* Mobile responsiveness for cart button */
@media (max-width: 768px) {
  .mel-cart-header {
    bottom: 20px;
    right: 20px;
  }
  
  .mel-cart-button {
    padding: 14px 20px;
    font-size: 14px;
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .mel-cart-header {
    bottom: 15px;
    right: 15px;
  }
  
  .mel-cart-button {
    padding: 12px 16px;
    font-size: 13px;
    min-width: 100px;
  }
}

/* Cart Sidebar - Professional Photographer Style */
.mel-cart-sidebar {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  border-left: 2px solid #333333;
}

.mel-cart-sidebar.open {
  right: 0;
}

.mel-cart-sidebar .mel-cart-header {
  position: static;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid rgba(0,124,186,0.1);
  background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
  color: white;
}

.mel-cart-sidebar .mel-cart-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.mel-cart-close {
  background: rgba(255,255,255,0.2);
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mel-cart-close:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}

.mel-cart-items {
  flex: 1;
  padding: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #007cba #f1f1f1;
}

.mel-cart-items::-webkit-scrollbar {
  width: 6px;
}

.mel-cart-items::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.mel-cart-items::-webkit-scrollbar-thumb {
  background: #007cba;
  border-radius: 3px;
}

.mel-cart-empty {
  text-align: center;
  color: #666;
  margin-top: 80px;
  padding: 0 30px;
}

.mel-cart-empty p:first-child {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}

.mel-cart-empty p:last-child {
  font-size: 14px;
  opacity: 0.7;
}

.mel-cart-item {
  display: flex;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.3s ease;
}

.mel-cart-item:hover {
  background: rgba(0,124,186,0.02);
}

.mel-cart-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  margin-right: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mel-cart-thumbnail {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  margin-right: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  flex-shrink: 0;
}

.mel-cart-thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.mel-video-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
  border-radius: 12px;
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mel-cart-item-info {
  flex: 1;
}

.mel-cart-item-title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 15px;
  color: #333;
  line-height: 1.3;
}

.mel-cart-item-price {
  color: #007cba;
  font-weight: 700;
  font-size: 16px;
}

.mel-cart-item-remove {
  background: rgba(0, 0, 0, 0.05);
  color: #666666;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  min-width: 28px;
  max-width: 28px;
  min-height: 28px;
  max-height: 28px;
  flex-shrink: 0;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-left: 12px;
}

.mel-cart-item-remove:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.2);
  transform: scale(1.05);
}

.mel-cart-footer {
  padding: 25px 30px;
  border-top: 1px solid rgba(0,124,186,0.1);
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.mel-cart-total {
  margin-bottom: 20px;
  font-size: 20px;
  text-align: left !important;
  color: #333;
  font-weight: 700;
  padding: 15px;
  background: rgba(0,124,186,0.05);
  border-radius: 12px;
  border: 2px solid rgba(0,124,186,0.1);
}

.mel-checkout-button {
  width: 100%;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 18px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(40,167,69,0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mel-checkout-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40,167,69,0.4);
}

.mel-checkout-button:disabled {
  background: linear-gradient(135deg, #ccc 0%, #999 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Cart Overlay */
.mel-cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mel-cart-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Add to Cart Button on Media Items */
.mel-add-to-cart {
  background: #000000;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.mel-add-to-cart:hover {
  background: #005a87;
  transform: translateY(-1px);
}

.mel-header h1 {
  font-size: 2.5em;
  margin: 0;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.mel-header p {
  font-size: 1.1em;
  color: #f8f9fa;
  margin: 10px 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Search and filters */
.mel-search {
  margin-bottom: 0 !important;
  text-align: center;
}

.mel-search input {
  width: 100%;
  max-width: 1100px;
  padding: 12px 20px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 25px;
  background: rgba(255,255,255,0.95);
}

/* Smart Minimalistic Filters */
.mel-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.mel-filter {
  position: relative;
}

.mel-filter label {
  display: none; /* Hide labels for cleaner look */
}

/* Smart Filter Dropdowns */
.mel-filter-dropdown {
  position: relative;
}

.mel-dropdown-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  padding: 12px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.mel-dropdown-btn:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-radius: 20px;
  width: auto;
  padding: 8px 16px;
  gap: 8px;
}

.mel-dropdown-btn.active {
  background: #333;
  color: white;
  border-color: #333;
}

.mel-dropdown-btn.active::after {
  content: attr(data-count);
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4444;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Text hidden by default, shows on hover */
.mel-btn-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: all 0.3s ease;
  font-size: 14px;
}

.mel-dropdown-btn:hover .mel-btn-text {
  opacity: 1;
  width: auto;
  margin-left: 6px;
}

/* CSS Updated: 2026-01-17 20:04:01 - Dropdown Fix */

.mel-dropdown-content {
  position: fixed;
  top: auto;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 999999;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 8px;
  display: none;
  min-width: 200px;
  max-width: 300px;
}

.mel-dropdown-content.show {
  display: block;
}

.mel-checkbox-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s ease;
  border: none;
  background: white;
  color: #333;
  position: relative;
  white-space: nowrap;
  text-align: center;
}

.mel-checkbox-item:hover {
  background: #f8f9fa;
  color: #000;
}

.mel-checkbox-item.selected {
  background: #007cba;
  color: white;
}

.mel-checkbox-item input {
  display: none;
}

.mel-checkbox-item span {
  display: flex;
  align-items: center;
  font-weight: 400;
}

.mel-checkbox-item span::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid #ddd;
  border-radius: 3px;
  margin-right: 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mel-checkbox-item:hover span::before {
  border-color: #007cba;
}

.mel-checkbox-item.selected span::before {
  background: white;
  border-color: white;
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: #007cba;
}

.mel-checkbox-item.selected span {
  font-weight: 500;
}

/* Better scrollbar */
.mel-dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.mel-dropdown-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.mel-dropdown-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.mel-dropdown-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Gallery grid - True Adaptive Layout */
.mel-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
  justify-content: flex-start;
  align-items: flex-start;
}

/* Cards that adapt to actual image dimensions */
.mel-item {
  margin: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 0 0 auto;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mel-item:hover {
  transform: scale(1.02);
  z-index: 10;
  position: relative;
}

.mel-item img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: contain;
}

/* Minimal media cards - PURE ARTISTIC */
.mel-item {
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.mel-item:hover {
  transform: none;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.mel-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.mel-item:hover img {
  transform: scale(1.05);
}

/* Hide all content initially - PURE IMAGE */
.mel-item-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.95);
  color: white;
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  opacity: 0;
}

.mel-item:hover .mel-item-content {
  transform: translateY(0);
  opacity: 1;
}

.mel-item-content h3 {
  margin: 0 0 10px 0 !important;
  font-size: 1.1em !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

.mel-item-content .mel-add-to-cart {
  background: white;
  color: #333;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mel-item-content .mel-add-to-cart:hover {
  background: #f0f0f0;
}

/* Canvas video player styles */
.mel-video-container {
  position: relative;
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mel-video-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.mel-video-canvas {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.mel-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mel-video-container:hover .mel-video-overlay {
  opacity: 1;
}

.mel-play-overlay {
  background: rgba(0,0,0,0.85);
  color: #ffffff;
  border: 3px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
}

.mel-play-overlay:hover {
  background: rgba(0,0,0,0.95);
  border-color: rgba(255,255,255,0.7);
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(0,0,0,0.5);
}

.mel-expand-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0,0,0,0.8);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.mel-expand-btn:hover {
  background: rgba(0,0,0,0.95);
  border-color: rgba(255,255,255,0.6);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.mel-video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mel-video-container:hover .mel-video-controls {
  opacity: 1;
}

.mel-play-btn, .mel-volume-btn {
  background: rgba(0,0,0,0.8);
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(5px);
}

.mel-play-btn:hover, .mel-volume-btn:hover {
  background: rgba(0,0,0,0.95);
  border-color: rgba(255,255,255,0.6);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.mel-progress {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.mel-progress:hover {
  height: 8px;
}

.mel-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #feca57);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s ease;
}

.mel-time {
  color: white;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  min-width: 90px;
  text-align: right;
}

/* Modal styles */
.mel-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  backdrop-filter: blur(5px);
}

.mel-modal-content {
  position: relative;
  margin: 1vh auto;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mel-modal-header {
  background: rgba(0,0,0,0.3);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.mel-modal-header h3 {
  color: white;
  margin: 0;
  font-size: 1.5em;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.mel-modal-close {
  color: white;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.mel-modal-close:hover {
  color: #ff6b6b;
}

.mel-modal-video {
  padding: 15px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

.mel-modal-video canvas {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  max-width: 100%;
  max-height: 45vh;
  object-fit: contain;
}

.mel-modal-video img {
  max-width: 100%;
  max-height: 45vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.mel-modal-controls {
  background: rgba(0,0,0,0.5);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-radius: 10px;
  margin-top: 20px;
}

.mel-modal-controls .mel-play-btn,
.mel-modal-controls .mel-volume-btn {
  background: rgba(0,0,0,0.8);
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  width: 45px;
  height: 45px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(5px);
}

.mel-modal-controls .mel-play-btn:hover,
.mel-modal-controls .mel-volume-btn:hover {
  background: rgba(0,0,0,0.95);
  border-color: rgba(255,255,255,0.6);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.mel-modal-controls .mel-progress {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
  cursor: pointer;
}

.mel-modal-controls .mel-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #feca57);
  border-radius: 4px;
  width: 0%;
  transition: width 0.1s ease;
}

.mel-modal-controls .mel-time {
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  min-width: 100px;
  text-align: right;
}

/* Responsive modal */
@media (max-width: 768px) {
  .mel-modal-content {
    width: 98%;
    margin: 1vh auto;
    max-height: 98vh;
  }
  
  .mel-modal-header {
    padding: 15px;
  }
  
  .mel-modal-header h3 {
    font-size: 1.2em;
  }
  
  .mel-modal-video {
    padding: 15px;
  }
  
  .mel-modal-video canvas,
  .mel-modal-video img {
    max-height: 50vh;
  }
  
  .mel-modal-controls {
    padding: 15px;
    gap: 10px;
  }
  
  .mel-modal-purchase {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .mel-modal-content {
    width: 100%;
    margin: 0;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .mel-modal-video canvas,
  .mel-modal-video img {
    max-height: 40vh;
  }
}

.mel-item-content {
  padding: 15px;
}

.mel-item-content h3 {
  margin: 0 0 10px 0;
  font-size: 1.1em;
  color: #333;
}

/* Responsive design */
@media (max-width: 768px) {
  .mel-filters {
    flex-direction: column;
    align-items: center;
  }
  
  .mel-filter {
    width: 100%;
    max-width: 300px;
  }
  
  .mel-gallery {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }
}
/* Modal purchase section */
.mel-modal-purchase {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: center;
    background: #f9f9f9;
    flex-shrink: 0;
}

.mel-price {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

.mel-buy-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.mel-buy-btn:hover {
    background: #229954;
}

.mel-buy-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}
/* Multi-select dropdown additions */
.mel-filter-dropdown {
  position: relative;
}

.mel-dropdown-btn {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #333;
  transition: border-color 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.mel-dropdown-btn:hover {
  border-color: #0073aa;
  box-shadow: 0 1px 5px rgba(0,0,0,0.15);
}

.mel-dropdown-content {
  position: fixed;
  top: auto;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: 200px;
  overflow-y: auto;
  z-index: 999999;
  display: none;
}

.mel-dropdown-content.show {
  display: block;
}

.mel-checkbox-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #333;
  text-decoration: none;
  border: none;
  background: none;
}

.mel-checkbox-item:hover {
  background: #f5f5f5;
}

.mel-checkbox-item input {
  margin-right: 8px;
  accent-color: #0073aa;
  width: 16px;
  height: 16px;
}

.mel-checkbox-item span {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  text-decoration: none;
  border: none;
  background: none;
  margin: 0;
  padding: 0;
}
/* Bulk purchase functionality */
.mel-item-header {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
}

.mel-item {
  position: relative;
}
/* Modern Professional Modal - Fixed Centering & Scrolling */
.mel-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  overflow-y: auto;
}

.mel-modal-content {
  position: relative;
  background: #ffffff;
  margin: 20px auto;
  width: 95%;
  max-width: 1200px;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
  padding-bottom: 50px;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.mel-modal-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 25px 30px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.mel-modal-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  color: #212529;
  letter-spacing: -0.5px;
}

.mel-modal-close {
  background: #f8f9fa;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mel-modal-close:hover {
  background: #e9ecef;
  color: #495057;
  transform: scale(1.1);
}

/* Support both old and new structure */
.mel-modal-body,
.mel-modal-video {
  display: flex;
  flex: 1;
  min-height: 0;
  padding-bottom: 60px;
}

.mel-modal-media,
.mel-modal-video > canvas,
.mel-modal-video > #mel-modal-canvas {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 2;
  min-height: 400px;
}

.mel-modal-media canvas,
.mel-modal-media img,
#mel-modal-canvas,
#mel-modal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.mel-modal-controls {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.mel-modal-controls button {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.mel-modal-controls button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mel-progress {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.mel-progress-bar {
  height: 100%;
  background: #007cba;
  border-radius: 3px;
  transition: width 0.1s ease;
}

.mel-time {
  color: white;
  font-size: 14px;
  font-weight: 500;
  min-width: 100px;
  text-align: center;
}

.mel-modal-sidebar,
.mel-modal-purchase {
  background: #f8f9fa;
  padding: 20px;
  padding-bottom: 70px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-width: 350px;
}

/* If purchase is separate, style it differently */
.mel-modal-video .mel-modal-purchase {
  background: white;
  border-radius: 0;
  padding: 25px;
  margin: 0;
  border-left: 1px solid #e9ecef;
  min-width: 300px;
}

.mel-modal-sidebar::-webkit-scrollbar {
  width: 6px;
}

.mel-modal-sidebar::-webkit-scrollbar-track {
  background: #e9ecef;
}

.mel-modal-sidebar::-webkit-scrollbar-thumb {
  background: #000000;
  border-radius: 3px;
}

.mel-modal-description,
.mel-modal-metadata,
.mel-modal-taxonomies {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #e9ecef;
  flex-shrink: 0;
}

.mel-modal-description h4,
.mel-modal-metadata h4,
.mel-modal-taxonomies h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 700;
  color: #212529;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mel-modal-description h4:before {
  content: "📝";
  font-size: 14px;
}

.mel-modal-metadata h4:before {
  content: "ℹ️";
  font-size: 14px;
}

.mel-modal-taxonomies h4:before {
  content: "🏷️";
  font-size: 14px;
}

.mel-modal-description p {
  color: #6c757d;
  line-height: 1.4;
  margin: 0;
  font-size: 13px;
}

.mel-metadata-grid {
  display: grid;
  gap: 6px;
}

.mel-metadata-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f1f3f4;
}

.mel-metadata-item:last-child {
  border-bottom: none;
}

.mel-metadata-item .label {
  font-weight: 500;
  color: #6b7280;
  margin-right: 4px;
}

.mel-metadata-item span:last-child {
  color: #111827;
  font-weight: 600;
}

.mel-taxonomies-grid {
  display: grid;
  gap: 8px;
}

.mel-taxonomy-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tax-label {
  font-weight: 600;
  color: #495057;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tax-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tax-tag {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #111827 !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}
  letter-spacing: 0.2px;
  box-shadow: 0 1px 3px rgba(0, 124, 186, 0.2);
}

.tax-empty {
  color: #adb5bd;
  font-style: italic;
  font-size: 11px;
}

.mel-modal-purchase {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  z-index: 10;
}

.mel-modal-purchase .mel-price,
.mel-price {
  font-size: 16px;
  font-weight: 600;
  color: #495057;
  margin: 0;
  letter-spacing: -0.2px;
}

.mel-modal-purchase .mel-add-to-cart,
.mel-add-to-cart {
  background: #000000;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: none;
  letter-spacing: 0;
  min-width: 120px;
}

.mel-modal-purchase .mel-add-to-cart:hover,
.mel-add-to-cart:hover {
  background: #0056b3;
  transform: none;
  box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mel-modal-content {
    margin: 10px;
    width: calc(100% - 20px);
    padding-bottom: 45px;
  }
  
  .mel-modal-header {
    padding: 20px;
  }
  
  .mel-modal-header h3 {
    font-size: 20px;
  }
  
  .mel-modal-body,
  .mel-modal-video {
    flex-direction: column;
    padding-bottom: 50px;
  }
  
  .mel-modal-media,
  .mel-modal-video > canvas {
    min-height: 250px;
    flex: none;
  }
  
  .mel-modal-sidebar,
  .mel-modal-purchase {
    padding: 20px;
    padding-bottom: 60px;
    min-width: auto;
    max-height: 50vh;
  }
  
  .mel-modal-purchase {
    padding: 10px 20px;
  }
  
  .mel-modal-purchase .mel-price {
    font-size: 14px;
  }
  
  .mel-modal-purchase .mel-add-to-cart {
    padding: 6px 12px;
    font-size: 11px;
    min-width: 100px;
  }
  
  .mel-modal-controls {
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 10px 15px;
  }
}

/* ===== HUD-STYLE FLOATING SIDEBAR ===== */

/* HUD Sidebar - Fixed to left edge */
.mel-hud-sidebar {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* HUD Filters Container - Always visible */
.mel-hud-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Individual HUD Filter */
.mel-hud-filter {
  position: relative;
  display: flex;
  align-items: center;
}

/* HUD Button - Always visible */
.mel-hud-btn {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.1);
  position: relative;
}

.mel-hud-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.15);
}

.mel-hud-btn i {
  color: #333;
  font-size: 18px;
}

/* Disable Hover Tooltip for hero filters */
.mel-hero-filters-duplicate .mel-hud-btn::before {
  display: none !important;
}
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1002;
}

.mel-hud-btn:hover::before {
  opacity: 1;
}

/* Active State */
.mel-hud-filter.active .mel-hud-btn {
  background: #333;
  border-color: #333;
}

.mel-hud-filter.active .mel-hud-btn i {
  color: white;
}

/* Count Badge */
.mel-hud-filter.active .mel-hud-btn::after {
  content: attr(data-count);
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* HUD Dropdown - FIXED POSITIONING FOR VISIBILITY */
.mel-hud-dropdown {
  position: fixed;
  left: 70px;
  top: 0;
  background: white;
  border: 2px solid #333;
  border-radius: 8px;
  z-index: 999999;
  width: 200px;
  padding: 10px;
  display: none;
}

.mel-hud-dropdown.show {
  display: block;
}

.mel-checkbox-item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  margin: 2px 0;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
}

.mel-checkbox-item:hover {
  background: #e0e0e0;
}

.mel-checkbox-item.selected {
  background: #333;
  color: white;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Container adjustments for HUD layout */
.mel-gallery-section .mel-container {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 20px !important;
}

/* Ensure gallery is visible - FLEXBOX LAYOUT */
.mel-gallery {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 15px !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  width: 100% !important;
  margin: 0 auto !important;
}
/* Professional Photographer Cart Styling - Light Theme */
.mel-cart-button {
  background: linear-gradient(135deg, #333333 0%, #000000 100%);
  border: 2px solid #333333;
  border-radius: 50px;
  color: #ffffff;
}

.mel-cart-button:hover {
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  transform: translateY(-2px);
  border-color: #555555;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.mel-cart-button.has-items {
  border-color: #555555;
}

/* Professional Cart - Light/Black Theme with Minimal Red (5%) */
.mel-cart-items {
  background: #ffffff;
}

.mel-cart-sidebar .mel-cart-header {
  background: #000000;
  border-bottom: 1px solid #dee2e6;
}

.mel-cart-sidebar .mel-cart-header h3 {
  color: #ffffff;
}

.mel-cart-button {
  background: #000000;
  border: 2px solid #333333;
  border-radius: 50px;
  color: #ffffff;
}

.mel-cart-button:hover {
  background: #333333;
  transform: translateY(-2px);
  border-color: #555555;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.mel-checkout-button {
  background: #000000;
  border-radius: 50px;
  color: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.mel-checkout-button:hover:not(:disabled) {
  background: #333333;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.mel-cart-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

.mel-cart-item-title {
  color: #333333;
}

.mel-cart-item-price {
  color: #2563eb;
  font-weight: 600;
}

.mel-cart-total {
  color: #333333;
}

.mel-checkout-button {
  background: linear-gradient(135deg, #333333 0%, #000000 100%);
  border-radius: 50px;
  color: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.mel-checkout-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.mel-cart-items::-webkit-scrollbar-thumb {
  background: #333333;
}
/* Intuitive Cart Button with Badge */
.mel-cart-header {
  overflow: visible;
}

.mel-cart-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: visible;
  padding: 12px 20px;
}

.cart-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.2;
}

.mel-cart-button .cart-items {
  font-size: 14px;
  font-weight: 600;
}

.mel-cart-button .cart-total {
  font-size: 12px;
  opacity: 0.7;
  font-weight: 400;
  display: none;
}

.mel-cart-button.has-items .cart-total {
  display: block;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.mel-cart-button .cart-text {
  font-weight: 600;
}

.mel-cart-button .cart-total {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-left: 4px;
  display: none;
}

.mel-cart-button.has-items .cart-total {
  display: inline-block;
}
/* EMERGENCY LAYOUT FIX - v3.1.4 */
.mel-gallery-section {
  margin-left: 0 !important;
  padding-left: 0 !important;
  left: 0 !important;
  position: static !important;
  width: 100% !important;
}

.mel-gallery-section .mel-container {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1200px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}
html body .mel-gallery-section {
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 60px 0 40px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  position: relative !important;
  transform: none !important;
  box-sizing: border-box !important;
}

html body .mel-gallery-section .mel-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 20px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
}

html body .mel-gallery {
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
}
/* FORCE CONSISTENT GRID SPACING - FLOWING LAYOUT */
html body .mel-gallery {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 15px !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
}

html body .mel-gallery .mel-item {
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Responsive breakpoints */
@media (max-width: 1400px) {
  .mel-gallery {
    /* Flexbox maintained - no grid override */
  }
  .mel-gallery .mel-item {
    margin: 0 !important;
  }
}

@media (max-width: 1024px) {
  .mel-gallery {
    /* Flexbox maintained - no grid override */
  }
  .mel-gallery .mel-item {
    margin: 0 !important;
  }
  
  .mel-container {
    padding: 30px 15px !important;
  }
}

@media (max-width: 768px) {
  .mel-gallery {
    /* Flexbox maintained - no grid override */
  }
  .mel-gallery .mel-item {
    margin: 0 !important;
  }
  
  .mel-container {
    padding: 20px 10px !important;
  }
}

@media (max-width: 480px) {
  .mel-gallery {
    /* Flexbox maintained - no grid override */
  }
  .mel-gallery .mel-item {
    margin: 0 !important;
  }
  
  .mel-container {
    padding: 15px 10px !important;
  }
}

/* Smooth card animations */
.mel-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  transform: translateY(0) !important;
}

.mel-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Clean Cart Totals */
.mel-cart-totals {
  padding: 0;
  margin: 0;
  text-align: left !important;
}

.mel-cart-totals * {
  text-align: left !important;
}

.mel-total-line {
  margin: 8px 0;
  font-size: 14px;
  color: #374151;
  text-align: left !important;
}

.mel-total-line.mel-discount {
  color: #059669;
  font-weight: 500;
}

.mel-total-line.mel-tax {
  color: #6b7280;
  font-weight: 500;
}

.mel-total-line.mel-price-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.mel-total-line.mel-price-line .mel-tax-toggle {
  margin: 0;
}

.mel-promo-section {
  margin: 16px 0 0 0;
  padding: 16px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  text-align: left !important;
}

.mel-promo-section * {
  text-align: left !important;
}

.mel-promo-section input {
  width: 65%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.mel-promo-section input:focus {
  outline: none;
  border-color: #007cba;
}

.mel-promo-section button {
  width: 32%;
  padding: 8px 12px;
  margin-left: 3%;
  background: #007cba;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.mel-promo-section button:hover {
  background: #005a87;
}

.mel-promo-section button:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.mel-promo-message {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
}

.mel-promo-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.mel-promo-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.mel-tax-toggle {
  color: #6b7280;
  font-size: 11px;
  cursor: pointer;
  margin: 4px 0 8px 0;
  text-decoration: underline;
  user-select: none;
}

.mel-tax-toggle:hover {
  color: #374151;
}

.mel-tax-details {
  margin-left: 12px;
}

/* ===== MODERN IMAGE MODAL ENHANCEMENTS ===== */

/* Modern Image Styling */
.mel-modern-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.mel-modern-image:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

/* Modern Modal Animations */
.mel-modal.mel-modal-entering {
  animation: modalFadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mel-modal.mel-modal-exiting {
  animation: modalFadeOut 0.2s ease-in-out;
}

@keyframes modalFadeIn {
  from { 
    opacity: 0; 
    backdrop-filter: blur(0px);
  }
  to { 
    opacity: 1; 
    backdrop-filter: blur(8px);
  }
}

@keyframes modalFadeOut {
  from { 
    opacity: 1; 
    backdrop-filter: blur(8px);
  }
  to { 
    opacity: 0; 
    backdrop-filter: blur(0px);
  }
}

.mel-modal-entering .mel-modal-content {
  animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mel-modal-exiting .mel-modal-content {
  animation: modalSlideOut 0.2s ease-in-out;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.9) translateY(-20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes modalSlideOut {
  from { opacity: 1; transform: scale(1) translateY(0); }
  to { opacity: 0; transform: scale(0.95) translateY(-10px); }
}

/* Enhanced Close Button */
.mel-modal-close {
  background: rgba(255, 255, 255, 0.9) !important;
  border: none !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  font-size: 20px !important;
  color: #6c757d !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 10001 !important;
}

.mel-modal-close:hover {
  background: rgba(248, 249, 250, 0.95) !important;
  color: #495057 !important;
  transform: scale(1.1) rotate(90deg) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Modern Sidebar Enhancements */
.mel-modal-sidebar {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

.mel-modal-description,
.mel-modal-metadata,
.mel-modal-taxonomies {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
}

.mel-modal-description:hover,
.mel-modal-metadata:hover,
.mel-modal-taxonomies:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
}

/* ===== SMART METADATA LAYOUT ===== */

.mel-metadata-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.mel-metadata-item {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 8px !important;
  background: rgba(0, 0, 0, 0.05) !important;
  border-radius: 12px !important;
  font-size: 11px !important;
  white-space: nowrap !important;
}

.mel-metadata-item .label {
  font-weight: 500;
  color: #6b7280;
  margin-right: 4px;
}

.mel-metadata-item span:last-child {
  color: #111827;
  font-weight: 600;
}

.mel-taxonomies-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 3px !important;
}

.mel-taxonomy-pill {
  padding: 2px 6px !important;
  background: #e3f2fd !important;
  border-radius: 10px !important;
  font-size: 10px !important;
  color: #0056b3 !important;
}

.mel-modal-metadata h4,
.mel-modal-taxonomies h4 {
  margin: 0 0 8px 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #374151 !important;
}

.mel-modal-metadata,
.mel-modal-taxonomies {
  padding: 14px !important;
  margin-bottom: 8px !important;
}

/* ========================================
   RESPONSIVE HERO SECTION ENHANCEMENTS
   ======================================== */

/* Tablet landscape and smaller desktops */
@media (max-width: 1024px) {
  .mel-search-section .mel-container {
    padding: 0 30px !important;
  }
  
  .mel-header h1 {
    font-size: 3.2em !important;
  }
  
  .mel-hero-right p {
    font-size: 1.2em !important;
  }
  
  .mel-search input {
    max-width: none !important;
  }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .mel-search-section, 
  div.mel-search-section {
    padding: 40px 0 30px !important;
    min-height: 300px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Reduce video quality on tablets for better performance */
  .mel-search-section .mel-video-background {
    opacity: 0.8 !important;
  }
  
  .mel-search-section .mel-container {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 20px !important;
    justify-content: center !important;
    gap: 15px !important;
  }
  
  .mel-header {
    padding-right: 0 !important;
    margin-bottom: 0 !important;
    text-align: center !important;
    width: 100% !important;
  }
  
  .mel-header h1 {
    font-size: 2.8em !important;
    line-height: 1.1 !important;
    text-align: center !important;
    margin-bottom: 0 !important;
  }
  
  .mel-hero-right {
    text-align: center !important;
    width: 100% !important;
  }
  
  .mel-hero-right p {
    font-size: 1.1em !important;
    margin-bottom: 15px !important;
    text-align: center !important;
  }
  
  .mel-search input {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Mobile landscape */
@media (max-width: 640px) {
  .mel-search-section {
    padding: 30px 0 25px !important;
    min-height: 240px !important;
  }
  
  .mel-header h1 {
    font-size: 2.4em !important;
  }
  
  .mel-hero-right p {
    font-size: 1em !important;
    line-height: 1.4 !important;
  }
  
  .mel-search input {
    padding: 16px 20px 16px 45px !important;
    font-size: 1em !important;
  }
  
  .mel-search .search-icon {
    left: 15px !important;
    width: 18px !important;
    height: 18px !important;
  }
}

/* Tablet and mobile landscape */
/* Large Desktop */
@media (min-width: 1400px) {
  .mel-search-section {
    min-height: 90vh !important;
  }
  
  .mel-search-section .mel-container {
    padding: 0 60px !important;
  }
  
  .mel-search .search-icon {
    left: 20px !important;
    width: 20px !important;
    height: 20px !important;
  }
}

/* Desktop/Laptop */
@media (min-width: 769px) {
  .mel-search .search-icon {
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
  }
  
  .mel-search input {
    padding: 20px 25px 20px 55px !important;
  }
}

/* Laptop/Tablet Landscape */
@media (max-width: 1024px) {
  .mel-search-section {
    min-height: 80vh !important;
    padding: 40px 0 !important;
  }
  
  .mel-search-section .mel-container {
    padding: 0 30px !important;
    gap: 40px !important;
  }
  
  .mel-header {
    padding-right: 30px !important;
  }
  
  .mel-header h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem) !important;
  }
}

/* Tablet Portrait */
@media (max-width: 770px) {
  .mel-search-section, div.mel-search-section {
    min-height: 60vh !important;
    padding: 40px 0 !important;
  }
  
  .mel-search-section .mel-container, div.mel-search-section .mel-container {
    justify-content: center !important;
    align-items: center !important;
  }
  
  .mel-hero-content {
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
    gap: 30px !important;
  }
  
  .mel-header {
    padding-right: 0 !important;
  }
  
  .mel-header h1 {
    font-size: 2.5em !important;
    margin-bottom: 0 !important;
  }
  
  .mel-hero-right {
    width: 100% !important;
    max-width: 900px !important;
  }
  
  .mel-hero-right p {
    font-size: 1.1em !important;
    margin-bottom: 20px !important;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .mel-search-section {
    padding: 20px 0 !important;
    min-height: 60vh !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  
  .mel-search-section .mel-container {
    padding: 0 10px !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  
  .mel-hero-content {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .mel-header {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  
  .mel-header h1 {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    line-height: 1.1 !important;
    word-wrap: break-word !important;
  }
  
  .mel-hero-right {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  
  .mel-hero-right p {
    font-size: clamp(0.85rem, 3.5vw, 1rem) !important;
    margin-bottom: 15px !important;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
  }
  
  .mel-search {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .mel-search input {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 16px 14px 40px !important;
    font-size: 0.9rem !important;
    border-radius: 25px !important;
    box-sizing: border-box !important;
  }
  
  .mel-search .search-icon {
    left: 12px !important;
    width: 16px !important;
    height: 16px !important;
  }
  
  /* Video enabled on mobile - removed performance restriction */
  
  /* Fallback background image for mobile */
  .mel-search-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3)), 
                url("https://mauricie-en-lumiere.s3.ca-central-1.amazonaws.com/previews/2025/12/12-48-Garde-Cotiere-Champlain-DJI_20251228124856_0481_D.jpg") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: scroll !important; /* Better performance on mobile */
  }
  
  .mel-search-section .mel-container {
    padding: 0 15px !important;
  }
  
  .mel-header h1 {
    font-size: 2em !important;
    line-height: 1.2 !important;
  }
  
  .mel-hero-right p {
    font-size: 0.95em !important;
    margin-bottom: 15px !important;
  }
  
  .mel-search input {
    padding: 14px 18px 14px 40px !important;
    font-size: 0.95em !important;
    border-radius: 25px !important;
  }
  
  .mel-search .search-icon {
    left: 12px !important;
    width: 16px !important;
    height: 16px !important;
  }
}

/* Extra small mobile */
@media (max-width: 360px) {
  .mel-search-section {
    padding: 15px 0 !important;
    min-height: 55vh !important;
    width: 100vw !important;
    overflow-x: hidden !important;
  }
  
  .mel-search-section .mel-container {
    padding: 0 8px !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .mel-header h1 {
    font-size: clamp(1.3rem, 7vw, 1.8rem) !important;
    line-height: 1.1 !important;
    word-wrap: break-word !important;
  }
  
  .mel-hero-right p {
    font-size: clamp(0.8rem, 4vw, 0.9rem) !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
  }
  
  .mel-search input {
    padding: 12px 14px 12px 35px !important;
    font-size: 0.85rem !important;
    border-radius: 20px !important;
  }
  
  .mel-search .search-icon {
    left: 10px !important;
    width: 14px !important;
    height: 14px !important;
  }
}
  
  .mel-search input {
    padding: 12px 16px 12px 38px !important;
    font-size: 0.9em !important;
  }
}
/* Mobile HUD Filters - Natural Spacing */
@media (max-width: 768px) {
  .mel-search-section .mel-hud-sidebar {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    margin: 70px auto 50px auto !important;
    padding: 0 20px !important;
    display: flex !important;
    justify-content: center !important;
  }
  
  .mel-search-section .mel-hud-filters {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 100% !important;
  }
  
  .mel-search-section .mel-hud-filter {
    position: relative !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }
  
  .mel-search-section .mel-hud-btn {
    width: auto !important;
    height: 42px !important;
    font-size: 14px !important;
    border-radius: 21px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(0, 124, 186, 0.3) !important;
    color: #007cba !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
    padding: 0 16px !important;
    gap: 8px !important;
    white-space: nowrap !important;
  }
  
  .mel-search-section .mel-hud-btn i {
    font-size: 16px !important;
  }
  
  .mel-search-section .mel-hud-btn::after {
    content: attr(data-tooltip) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
  }
  
  .mel-search-section .mel-hud-btn:hover {
    background: #007cba !important;
    color: white !important;
    transform: scale(1.05) !important;
  }
  
  .mel-search-section .mel-hud-dropdown {
    position: absolute !important;
    top: 50px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 250px !important;
    z-index: 1001 !important;
  }
}

/* Hero Filters - Inside search container, perfectly aligned */
.mel-search .mel-hero-filters-duplicate {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 25px 0 0 0 !important;
  flex-wrap: wrap !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 500px !important;
}

/* Filter Button - Modern, intuitive design */
.mel-hero-filters-duplicate .mel-hud-btn,
.mel-hero-filters .mel-filter-btn {
  height: 38px !important;
  padding: 0 14px !important;
  border-radius: 19px !important;
  background: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  color: #495057 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  min-width: fit-content !important;
  overflow: visible !important;
}

.mel-hero-filters-duplicate .mel-hud-btn i,
.mel-hero-filters .mel-filter-btn i {
  font-size: 13px !important;
  color: #6c757d !important;
}

.mel-hero-filters-duplicate .mel-hud-btn .filter-text,
.mel-hero-filters .mel-filter-btn .filter-text {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #495057 !important;
}

.mel-hero-filters-duplicate .mel-hud-btn:hover,
.mel-hero-filters .mel-filter-btn:hover {
  background: #e9ecef !important;
  border-color: #dee2e6 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.mel-hero-filters-duplicate .mel-hud-btn:hover i,
.mel-hero-filters-duplicate .mel-hud-btn:hover .filter-text,
.mel-hero-filters .mel-filter-btn:hover i,
.mel-hero-filters .mel-filter-btn:hover .filter-text {
  color: #343a40 !important;
}

/* Clean active state styling */
.mel-hero-filters-duplicate .mel-hud-filter.active .mel-hud-btn,
.mel-hero-filters .mel-filter.active .mel-filter-btn {
  background: #000000 !important;
  color: white !important;
  border-color: #000000 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  position: relative !important;
}

.mel-hero-filters-duplicate .mel-hud-filter.active .mel-hud-btn i,
.mel-hero-filters-duplicate .mel-hud-filter.active .mel-hud-btn .filter-text,
.mel-hero-filters .mel-filter.active .mel-filter-btn i,
.mel-hero-filters .mel-filter.active .mel-filter-btn .filter-text {
  color: white !important;
}

/* Count badges for both systems */
.mel-hero-filters-duplicate .mel-hud-filter.active .mel-hud-btn::after,
.mel-hero-filters .mel-filter.active .mel-filter-btn::after {
  content: attr(data-count) !important;
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  background: #FF0000 !important;
  color: white !important;
  border-radius: 50% !important;
  width: 20px !important;
  height: 20px !important;
  font-size: 11px !important;
  font-weight: bold !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid white !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* CTA Container - Floating Semantic Separation */
.mel-cta-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 40px 0 0 0 !important;
  width: 100% !important;
  max-width: 500px !important;
}

/* Go Button - Floating Call-to-Action */
.mel-cta-container .mel-go-btn {
  height: 48px !important;
  padding: 0 28px !important;
  border-radius: 24px !important;
  background: #000000 !important;
  border: 1px solid #000000 !important;
  color: white !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  position: relative !important;
  overflow: hidden !important;
}
  color: white !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 30px rgba(0, 124, 186, 0.4) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  position: relative !important;
  overflow: hidden !important;
}

.mel-cta-container .mel-go-btn::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
  transition: left 0.5s !important;
}

.mel-cta-container .mel-go-btn:hover::before {
  left: 100% !important;
}

.mel-cta-container .mel-go-btn:hover {
  background: white !important;
  border-color: #000000 !important;
  color: #000000 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

.mel-cta-container .mel-go-btn i {
  font-size: 16px !important;
  animation: none !important;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Hero filter dropdowns */
.mel-hero-filters-duplicate .mel-hud-dropdown,
.mel-hero-filters .mel-filter-dropdown {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  width: 250px !important;
  z-index: 999999 !important;
  background: white !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  display: none !important;
  max-height: 300px !important;
  overflow-y: auto !important;
}

.mel-hero-filters-duplicate .mel-hud-dropdown.show,
.mel-hero-filters .mel-filter-dropdown.show {
  display: block !important;
}
  
  /* ALSO show hero filters on desktop */
  .mel-search-section .mel-hud-filters {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 30px auto 0 auto !important;
    padding: 0 20px !important;
    flex-wrap: wrap !important;
  }
  
  .mel-search-section .mel-hud-filter {
    position: relative !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }
  
  .mel-search-section .mel-hud-btn {
    width: auto !important;
    height: 42px !important;
    font-size: 14px !important;
    border-radius: 21px !important;
    display: flex !important;

/* ===== DESKTOP SEARCH ICON FIX - FINAL OVERRIDE ===== */
@media (min-width: 769px) {
  .mel-search .search-icon {
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
  }
  
  .mel-search input {
    padding: 20px 25px 20px 55px !important;
  }
}

/* ===== NUCLEAR OPTION - FORCE SEARCH ICON POSITION ===== */
.mel-search svg.search-icon {
  position: absolute !important;
  left: 20px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 20px !important;
  height: 20px !important;
  color: #666 !important;
  z-index: 999 !important;
  pointer-events: none !important;
  display: block !important;
}

@media (min-width: 769px) {
  .mel-search svg.search-icon {
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
  }
}

/* Pagination */
.mel-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px !important;
  padding: 30px 0;
  gap: 20px;
}

/* High specificity pagination spacing fix */
.mel-gallery-section #mel-pagination {
  margin-top: 40px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.mel-pagination-info {
  color: #555;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.mel-pagination-buttons {
  display: flex;
  gap: 15px;
}

.mel-pagination-btn {
  background: linear-gradient(135deg, #333 0%, #555 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.mel-pagination-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #555 0%, #333 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.mel-pagination-btn:disabled {
  background: #ddd;
  color: #999;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* TEST - THIS SHOULD MAKE GALLERY RED IF CSS IS LOADING */
html body .mel-gallery-section .mel-gallery {
  background: red !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 15px !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  grid-auto-columns: none !important;
  grid-auto-rows: none !important;
  columns: auto !important;
  column-count: auto !important;
}

html body .mel-gallery-section .mel-gallery .mel-item {
  margin: 0 !important;
  padding: 0 !important;
  height: 250px !important;
  min-height: 250px !important;
  max-height: 250px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  flex: 0 0 auto !important;
  float: none !important;
  position: static !important;
  grid-column: auto !important;
  grid-row: auto !important;
}

html body .mel-gallery-section .mel-gallery .mel-item img {
  width: 100% !important;
  height: 250px !important;
  object-fit: contain !important;
  display: block !important;
}

html body .mel-gallery-section .mel-gallery .mel-item {
  margin: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
}

/* Mobile responsive with tight spacing */
@media (max-width: 768px) {
  html body .mel-gallery-section .mel-gallery {
    row-gap: 15px !important;
    column-gap: 15px !important;
    grid-gap: 15px !important;
    gap: 15px !important;
  }
}
/* FORCE EQUAL CARD DIMENSIONS FOR CONSISTENT SPACING */
html body .mel-gallery-section .mel-gallery .mel-item {
  margin: 0 !important;
  padding: 8px !important;
  height: fit-content !important;
  width: fit-content !important;
  justify-self: center !important;
}

html body .mel-gallery-section .mel-gallery .mel-item img {
  height: auto !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

/* FINAL GALLERY SPACING FIX - HIGHEST SPECIFICITY */
html body .mel-gallery-section .mel-gallery {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  row-gap: 20px !important;
  column-gap: 20px !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  background: none !important;
}

html body .mel-gallery-section .mel-gallery .mel-item {
  flex: 0 0 auto !important;
  height: 250px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 10px !important;
  padding: 0 !important;
}
/* NUCLEAR OPTION - FORCE ROW GAPS */
html body .mel-gallery-section .mel-gallery .mel-item {
  margin-bottom: 20px !important;
  margin-right: 10px !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
}
html body .mel-gallery-section .mel-gallery .mel-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* ===== CLEAN FILTER SYSTEM (NO MORE HUD) ===== */

/* Hero Filters Container - Exact same styling as .mel-search .mel-hero-filters-duplicate */
.mel-search .mel-hero-filters {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 25px 0 0 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 500px !important;
}

/* Individual Filter */
.mel-filter {
  position: relative !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

/* Filter Button - Exact same styling as mel-hero-filters-duplicate .mel-hud-btn */
.mel-filter-btn {
  height: 38px !important;
  padding: 0 14px !important;
  border-radius: 19px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0, 124, 186, 0.3) !important;
  color: #007cba !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  min-width: fit-content !important;
  overflow: visible !important;
}

.mel-filter-btn i {
  font-size: 13px !important;
}

.mel-filter-btn .filter-text {
  font-size: 13px !important;
  font-weight: 500 !important;
}

.mel-filter-btn:hover {
  background: #007cba !important;
  color: white !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(0, 124, 186, 0.2) !important;
}

/* Active state - Exact same styling */
.mel-filter.active .mel-filter-btn {
  background: #007cba !important;
  color: white !important;
  border-color: #007cba !important;
  box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3) !important;
}

.mel-filter.active .mel-filter-btn i,
.mel-filter.active .mel-filter-btn .filter-text {
  color: white !important;
}

/* Elegant count badge */
.mel-filter.active .mel-filter-btn::after {
  content: attr(data-count) !important;
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  background: #ff4444 !important;
  color: white !important;
  border-radius: 50% !important;
  width: 20px !important;
  height: 20px !important;
  font-size: 11px !important;
  font-weight: bold !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid white !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Filter Dropdowns - Exact same styling as mel-hero-filters-duplicate .mel-hud-dropdown */
.mel-filter-dropdown {
  position: fixed !important;
  width: 250px !important;
  z-index: 999999 !important;
  background: white !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  padding: 10px !important;
  display: none !important;
  max-height: 300px !important;
  overflow-y: auto !important;
}

.mel-filter-dropdown.show {
  display: block !important;
}

/* Mobile responsive - Same as before */
@media (max-width: 768px) {
  .mel-hero-filters {
    gap: 8px !important;
    margin: 20px auto 0 auto !important;
  }
  
  .mel-filter-btn {
    height: 36px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
  }
  
  .mel-filter-dropdown {
    width: 200px !important;
  }
}
