/** Shopify CDN: Minification failed

Line 6:0 Unexpected "="

**/
================================================
   MARVAC - Creative Animated Header for Shopify Horizon Theme
   Features: Responsive, Animated Background, Mega Menu with 
   Image Switching, Dynamic Cart, Premium UI/UX
   ============================================================ */

/* ---------- CSS VARIABLES & RESET ---------- */
:root {
  --marvac-primary: #1a56db;
  --marvac-primary-light: #3b82f6;
  --marvac-primary-dark: #1e40af;
  --marvac-accent: #60a5fa;
  --marvac-bg: #ffffff;
  --marvac-text: #1f2937;
  --marvac-text-light: #6b7280;
  --marvac-border: #e5e7eb;
  --marvac-shadow: 0 10px 40px rgba(26, 86, 219, 0.15);
  --marvac-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --marvac-menu-bg: rgba(255, 255, 255, 0.98);
}

/* ---------- ANIMATED BACKGROUND CANVAS ---------- */
.marvac-header-wrapper {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, #f0f7ff 100%);
  overflow: hidden;
}

.marvac-wave-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Floating particles animation */
.marvac-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.marvac-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--marvac-primary-light);
  border-radius: 50%;
  opacity: 0.3;
  animation: float-particle 15s infinite ease-in-out;
}

@keyframes float-particle {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
  25% { transform: translateY(-30px) translateX(20px); opacity: 0.6; }
  50% { transform: translateY(-15px) translateX(-15px); opacity: 0.4; }
  75% { transform: translateY(-40px) translateX(10px); opacity: 0.5; }
}

/* ---------- HEADER MAIN STRUCTURE ---------- */
.marvac-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  padding: 0;
  transition: var(--marvac-transition);
}

.marvac-header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  animation: slide-down 0.5s ease-out;
}

@keyframes slide-down {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.marvac-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: relative;
}

/* ---------- LOGO ---------- */
.marvac-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  z-index: 10;
}

.marvac-logo-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--marvac-primary), var(--marvac-primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(26, 86, 219, 0.3);
  animation: pulse-glow 3s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 15px rgba(26, 86, 219, 0.3); }
  50% { box-shadow: 0 4px 25px rgba(26, 86, 219, 0.5); }
}

.marvac-logo-text {
  font-size: 28px;
  font-weight: 800;
  color: var(--marvac-text);
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--marvac-primary-dark), var(--marvac-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- NAVIGATION ---------- */
.marvac-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.marvac-nav-item {
  position: relative;
  list-style: none;
}

.marvac-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  color: var(--marvac-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  transition: var(--marvac-transition);
  position: relative;
  overflow: hidden;
}

.marvac-nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--marvac-primary), var(--marvac-accent));
  border-radius: 2px;
  transition: var(--marvac-transition);
  transform: translateX(-50%);
}

.marvac-nav-link:hover::before,
.marvac-nav-item:hover .marvac-nav-link::before {
  width: 60%;
}

.marvac-nav-link:hover {
  color: var(--marvac-primary);
  background: rgba(26, 86, 219, 0.05);
}

.marvac-nav-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.marvac-nav-item:hover .marvac-nav-arrow {
  transform: rotate(180deg);
}

/* ---------- MEGA MENU ---------- */
.marvac-mega-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: 900px;
  background: var(--marvac-menu-bg);
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  overflow: hidden;
  border: 1px solid rgba(26, 86, 219, 0.1);
}

.marvac-nav-item:hover .marvac-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.marvac-mega-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

/* Left side - Menu List */
.marvac-mega-left {
  padding: 40px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.marvac-mega-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--marvac-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.marvac-mega-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--marvac-primary), transparent);
  opacity: 0.3;
}

.marvac-submenu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.marvac-submenu-item {
  margin-bottom: 4px;
}

.marvac-submenu-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  color: var(--marvac-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 12px;
  transition: var(--marvac-transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.marvac-submenu-link::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--marvac-primary);
  border-radius: 0 4px 4px 0;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.marvac-submenu-link:hover,
.marvac-submenu-link.active {
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.08), rgba(96, 165, 250, 0.05));
  color: var(--marvac-primary);
  transform: translateX(8px);
}

.marvac-submenu-link:hover::after,
.marvac-submenu-link.active::after {
  transform: scaleY(1);
}

.marvac-submenu-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--marvac-primary-light), var(--marvac-accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  display:none;
}

.marvac-submenu-link:hover .marvac-submenu-icon {
  transform: scale(1.1) rotate(-5deg);
}

.marvac-submenu-text {
  display: flex;
  flex-direction: column;
}

.marvac-submenu-name {
  font-weight: 600;
  font-size: 15px;
}

.marvac-submenu-desc {
  font-size: 12px;
  color: var(--marvac-text-light);
  margin-top: 2px;
}

/* Right side - Image Showcase */
.marvac-mega-right {
  position: relative;
  background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
}

.marvac-mega-right::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(26, 86, 219, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: breathe 4s infinite ease-in-out;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.marvac-showcase-image {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(26, 86, 219, 0.2);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.9);
  opacity: 0;
}

.marvac-showcase-image.active {
  transform: scale(1);
  opacity: 1;
}

.marvac-showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.marvac-showcase-image:hover img {
  transform: scale(1.1);
}

.marvac-showcase-label {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  color: var(--marvac-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease;
  display:none;
}

.marvac-showcase-image.active .marvac-showcase-label {
  opacity: 1;
}

/* Decorative circles */
.marvac-deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(26, 86, 219, 0.15);
  animation: rotate-slow 20s linear infinite;
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- HEADER ACTIONS ---------- */
.marvac-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

.marvac-action-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: rgba(26, 86, 219, 0.05);
  color: var(--marvac-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--marvac-transition);
  text-decoration: none;
}

.marvac-action-btn:hover {
  background: var(--marvac-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 86, 219, 0.3);
}

.marvac-action-btn svg {
  width: 20px;
  height: 20px;
}

.marvac-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce-in 0.5s ease;
}

@keyframes bounce-in {
  0% { transform: scale(0); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Search expand */
.marvac-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.marvac-search-input {
  width: 0;
  height: 44px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: transparent;
  padding: 0;
  font-size: 14px;
  transition: var(--marvac-transition);
  outline: none;
}

.marvac-search-wrapper.active .marvac-search-input {
  width: 250px;
  padding: 0 16px;
  border-color: var(--marvac-primary);
  background: white;
  box-shadow: 0 4px 20px rgba(26, 86, 219, 0.1);
}

/* ---------- MOBILE MENU ---------- */
.marvac-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.marvac-mobile-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--marvac-primary);
  border-radius: 3px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.marvac-mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.marvac-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.marvac-mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.marvac-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding-top: 100px;
}

.marvac-mobile-menu.active {
  transform: translateX(0);
}

.marvac-mobile-menu::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%233b82f6" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: bottom;
  pointer-events: none;
  opacity: 0.5;
}

.marvac-mobile-nav {
  padding: 20px 30px;
}

.marvac-mobile-item {
  border-bottom: 1px solid rgba(26, 86, 219, 0.1);
}

.marvac-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  color: var(--marvac-text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.marvac-mobile-link:hover {
  color: var(--marvac-primary);
}

.marvac-mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.marvac-mobile-submenu.open {
  max-height: 500px;
}

.marvac-mobile-subitem {
  padding: 14px 0 14px 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--marvac-text-light);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
}

.marvac-mobile-subitem:hover {
  color: var(--marvac-primary);
  padding-left: 40px;
}

.marvac-mobile-subitem img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
}

.marvac-mobile-arrow {
  transition: transform 0.3s ease;
}

.marvac-mobile-item.open .marvac-mobile-arrow {
  transform: rotate(180deg);
}

/* Mobile Actions */
.marvac-mobile-actions {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 30px;
  margin-top: 20px;
}

.marvac-mobile-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--marvac-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.marvac-mobile-action-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--marvac-primary), var(--marvac-primary-light));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 25px rgba(26, 86, 219, 0.3);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .marvac-nav {
    display: none;
  }

  .marvac-mobile-toggle {
    display: flex;
  }

  .marvac-header-inner {
    height: 70px;
  }

  .marvac-logo-text {
    font-size: 22px;
  }

  .marvac-logo-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .marvac-header-inner {
    padding: 0 16px;
    height: 65px;
  }

  .marvac-actions {
    gap: 10px;
  }

  .marvac-action-btn {
    width: 38px;
    height: 38px;
  }

  .marvac-logo-text {
    font-size: 20px;
  }

  .marvac-mobile-menu {
    padding-top: 80px;
  }
}

/* ---------- SCROLLBAR STYLING ---------- */
.marvac-mobile-menu::-webkit-scrollbar {
  width: 6px;
}

.marvac-mobile-menu::-webkit-scrollbar-track {
  background: transparent;
}

.marvac-mobile-menu::-webkit-scrollbar-thumb {
  background: var(--marvac-primary-light);
  border-radius: 3px;
}

/* ---------- LOADING ANIMATION ---------- */
.marvac-loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

