/* ==========================================
   FRO Mega Menu Products - Elegant Product Showcase
   ========================================== */

/* Container override for full width */
.elementor-widget-vango_mega_menu_products {
  width: 100% !important;
  max-width: none !important;
}

.elementor-widget-vango_mega_menu_products > .elementor-widget-container {
  width: 100% !important;
  overflow: visible !important;
}

.fro-mega-menu {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
  animation: fro-mega-fade-in 0.3s ease;
  box-sizing: border-box;
}

@keyframes fro-mega-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Grid Layout */
.fro-mega-menu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* Column */
.fro-mega-menu__col {
  display: flex;
  flex-direction: column;
}

/* Header */
.fro-mega-menu__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.fro-mega-menu__title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

/* Badge */
.fro-mega-menu__badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  background: #c5a059;
  color: #ffffff;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 20px;
  animation: fro-badge-pulse 2s ease-in-out infinite;
}

@keyframes fro-badge-pulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4);
  }
  50% { 
    transform: scale(1.02);
    box-shadow: 0 0 0 6px rgba(197, 160, 89, 0);
  }
}

/* Content - Image + Links side by side */
.fro-mega-menu__content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Product Image Box */
.fro-mega-menu__image-box {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fro-mega-menu__image-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fro-mega-menu__image-box:hover::before {
  opacity: 1;
}

.fro-mega-menu__image-box:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.1);
}

.fro-mega-menu__image-box img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fro-image-float 4s ease-in-out infinite;
}

@keyframes fro-image-float {
  0%, 100% { 
    transform: translateY(0) rotate(0deg);
  }
  25% { 
    transform: translateY(-6px) rotate(1deg);
  }
  75% { 
    transform: translateY(3px) rotate(-1deg);
  }
}

.fro-mega-menu__image-box:hover img {
  transform: scale(1.1);
  animation: none;
}

/* Links Wrapper */
.fro-mega-menu__links-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Links List */
.fro-mega-menu__links {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fro-mega-menu__item {
  margin: 0;
}

.fro-mega-menu__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #475569;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.fro-mega-menu__link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: #c5a059;
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.fro-mega-menu__link:hover {
  background: rgba(197, 160, 89, 0.08);
  color: #c5a059;
  padding-left: 18px;
}

.fro-mega-menu__link:hover::before {
  transform: scaleY(1);
}

.fro-mega-menu__link span {
  flex: 1;
}

.fro-mega-menu__link i {
  font-size: 10px;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.2s ease;
}

.fro-mega-menu__link:hover i {
  opacity: 1;
  transform: translateX(0);
}

/* Color Indicator */
.fro-mega-menu__color {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease;
}

.fro-mega-menu__link:hover .fro-mega-menu__color {
  transform: scale(1.2);
}

/* Footer CTA */
.fro-mega-menu__footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  text-align: center;
}

.fro-mega-menu__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #c5a059 0%, #b08c48 100%);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.fro-mega-menu__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4);
}

.fro-mega-menu__cta i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.fro-mega-menu__cta:hover i {
  transform: translateX(4px);
}

/* Separator Between Columns */
.fro-mega-menu__col--1 {
  position: relative;
  padding-right: 20px;
}

.fro-mega-menu__col--1::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 0;
  width: 1px;
  height: 80%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(15, 23, 42, 0.1) 15%,
    rgba(15, 23, 42, 0.1) 85%,
    transparent
  );
}

/* Responsive */
@media (max-width: 768px) {
  .fro-mega-menu__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .fro-mega-menu__col--1::after {
    display: none;
  }
  
  .fro-mega-menu {
    padding: 20px;
  }
  
  .fro-mega-menu__content {
    flex-direction: column;
  }
  
  .fro-mega-menu__image-box {
    width: 100% !important;
    height: 120px !important;
  }
}

/* Animation on Scroll */
.fro-mega-menu__col {
  animation: fro-col-slide-in 0.4s ease backwards;
}

.fro-mega-menu__col--1 {
  animation-delay: 0.1s;
}

.fro-mega-menu__col--2 {
  animation-delay: 0.2s;
}

@keyframes fro-col-slide-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered link animations */
.fro-mega-menu__item {
  animation: fro-link-fade 0.3s ease backwards;
}

.fro-mega-menu__item:nth-child(1) { animation-delay: 0.15s; }
.fro-mega-menu__item:nth-child(2) { animation-delay: 0.2s; }
.fro-mega-menu__item:nth-child(3) { animation-delay: 0.25s; }
.fro-mega-menu__item:nth-child(4) { animation-delay: 0.3s; }
.fro-mega-menu__item:nth-child(5) { animation-delay: 0.35s; }

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

/* Shine effect on badge */
.fro-mega-menu__badge {
  position: relative;
  overflow: hidden;
}

.fro-mega-menu__badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: fro-shine 3s ease-in-out infinite;
}

@keyframes fro-shine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* ==========================================
   PROMO BANNER
   ========================================== */
.fro-mega-menu__promo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #c5a059 0%, #d4af37 100%);
  color: #ffffff;
  border-radius: 10px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fro-mega-menu__promo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4);
}

.fro-mega-menu__promo--dark:hover {
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.4);
}

.fro-mega-menu__promo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  flex-shrink: 0;
  animation: fro-promo-icon-bounce 2s ease-in-out infinite;
}

.fro-mega-menu__promo-icon i,
.fro-mega-menu__promo-icon svg {
  font-size: 14px;
  color: #ffffff;
}

@keyframes fro-promo-icon-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.fro-mega-menu__promo-text {
  flex: 1;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fro-mega-menu__promo-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: fro-promo-shine 3s ease-in-out infinite;
}

@keyframes fro-promo-shine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* Image hover swap effect */
.fro-mega-menu__image-box img {
  transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fro-mega-menu__image-box.is-swapping img {
  animation: fro-image-swap 0.3s ease;
}

@keyframes fro-image-swap {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}
