/* ==========================================================================
   MahiPlusBD Extended Styles & Interactive Components
   ========================================================================== */

/* Keyframe animations */
@keyframes mpGlowPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 65, 229, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(0, 65, 229, 0.45);
  }
}

@keyframes mpFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.mp-animated-float {
  animation: mpFloat 4s ease-in-out infinite;
}

/* Category Switch Tabs for Mobile Drawer */
.mp-drawer-tabs {
  display: flex;
  background: var(--mp-surface);
  padding: 4px;
  border-radius: var(--mp-radius-sm);
  margin-bottom: 16px;
  gap: 4px;
}

.mp-drawer-tab-btn {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--mp-radius-xs);
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--mp-text-secondary);
  transition: all var(--mp-transition-fast);
}

.mp-drawer-tab-btn.active {
  background: #FFFFFF;
  color: var(--mp-primary);
  box-shadow: var(--mp-shadow-xs);
}

/* Free Shipping Meter on Cart & Header */
.mp-shipping-progress-wrap {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  padding: 12px 16px;
  border-radius: var(--mp-radius-sm);
  margin-bottom: 20px;
}

.mp-shipping-progress-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--mp-text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mp-progress-bar-bg {
  height: 6px;
  background: #E5E7EB;
  border-radius: 999px;
  overflow: hidden;
}

.mp-progress-bar-fill {
  height: 100%;
  background: var(--mp-primary);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Interactive Plan Switcher for Single Subscription Products */
.mp-plan-switcher {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 16px 0 20px;
}

.mp-plan-pill {
  border: 2px solid var(--mp-border);
  background: #FFFFFF;
  border-radius: var(--mp-radius-sm);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all var(--mp-transition-fast);
}

.mp-plan-pill:hover {
  border-color: var(--mp-primary-hover);
}

.mp-plan-pill.active {
  border-color: var(--mp-primary);
  background: var(--mp-primary-light);
}

.mp-plan-pill .plan-duration {
  font-size: 12px;
  font-weight: 700;
  display: block;
  color: var(--mp-text-primary);
}

.mp-plan-pill.active .plan-duration {
  color: var(--mp-primary);
}

.mp-plan-pill .plan-price {
  font-size: 14px;
  font-weight: 800;
  display: block;
  margin-top: 4px;
  color: var(--mp-text-primary);
}

.mp-plan-pill .plan-savings {
  font-size: 10px;
  font-weight: 700;
  color: var(--mp-success);
  margin-top: 2px;
  display: block;
}

/* Sizing Guide Modal */
.mp-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--mp-transition-base);
  padding: 16px;
}

.mp-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mp-modal-card {
  background: #FFFFFF;
  border-radius: var(--mp-radius-lg);
  max-width: 580px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--mp-shadow-xl);
  transform: translateY(20px);
  transition: transform var(--mp-transition-base);
  max-height: 90vh;
  overflow-y: auto;
}

.mp-modal-overlay.open .mp-modal-card {
  transform: translateY(0);
}

.mp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--mp-border);
  padding-bottom: 14px;
}

.mp-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--mp-text-primary);
  margin: 0;
}

.mp-modal-close-btn {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--mp-text-secondary);
  transition: all var(--mp-transition-fast);
}

.mp-modal-close-btn:hover {
  background: #E5E7EB;
  color: var(--mp-text-primary);
}
