/* ==========================================================================
   MwalimuFocus.Co.Ke - Header & Footer Design System
   Exact match to provided design specifications
   ========================================================================== */

:root {
  --mf-mint-header: #96f39d;
  --mf-mint-header-hover: #82ec8b;
  --mf-mint-light: #e8fbe9;
  --mf-mint-border: #7ee287;

  --mf-dark-nav: #0f2c16;
  --mf-dark-text: #0f172a;
  --mf-body-text: #334155;
  --mf-muted: #64748b;

  --mf-primary-green: #1b6838;
  --mf-primary-green-hover: #14532d;
  --mf-accent-emerald: #10b981;
  --mf-check-mint: #8ee89a;

  --mf-cyan-surface: #daf6fc;
  --mf-cyan-border: #bcecf7;
  --mf-cyan-ink: #0b343d;
  --mf-accent-blue: #2563eb;
  --mf-accent-blue-hover: #1d4ed8;

  --mf-canvas-bg: #f8fafc;
  --mf-card-border: #e2e8f0;

  --mf-profile-btn-bg: #121820;
  --mf-profile-btn-hover: #222c38;

  --mf-footer-bg: #f8fafc;
  --mf-footer-border: #e2e8f0;
  --mf-footer-heading: #0f172a;
  --mf-footer-link: #475569;

  --mf-font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mf-radius-sm: 6px;
  --mf-radius-md: 10px;
  --mf-radius-lg: 16px;
  --mf-radius-pill: 9999px;

  --mf-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --mf-shadow-dropdown: 0 16px 36px -4px rgba(15, 23, 42, 0.12), 0 6px 16px -2px rgba(15, 23, 42, 0.06);
  --mf-shadow-hover: 0 10px 25px -3px rgba(15, 23, 42, 0.1);
  --mf-transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & typography */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@view-transition {
  navigation: auto;
}

html {
  overflow-x: clip;
  max-width: 100%;
  background-color: #ffffff;
}

body {
  font-family: var(--mf-font-main);
  color: var(--mf-body-text);
  background-color: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100%;
}

/* Seamless zero-flicker main page transition */
main {
  transition: opacity 0.12s cubic-bezier(0.2, 0, 0, 1), transform 0.12s cubic-bezier(0.2, 0, 0, 1);
}

main.mf-page-transitioning {
  opacity: 0.55;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--mf-transition);
}

ul {
  list-style: none;
}

/* ==========================================================================
   TOP BAR (Phone & Email Contact Row)
   ========================================================================== */
.mf-topbar {
  background-color: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 0;
  font-size: 13.5px;
  font-weight: 500;
  color: #1e293b;
}

.mf-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.mf-topbar-content {
  display: flex;
  align-items: center;
  gap: 28px;
}

.mf-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #1e293b;
  letter-spacing: 0.2px;
  transition: color 0.15s ease;
}

.mf-topbar-item:hover {
  color: var(--mf-primary-green);
}

.mf-topbar-item svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.9;
  stroke: currentColor;
  flex-shrink: 0;
}

/* ==========================================================================
   MAIN NAVBAR (Mint Green Brand Header)
   ========================================================================== */
.mf-header {
  background-color: var(--mf-mint-header);
  border-bottom: 1px solid var(--mf-mint-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.mf-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.mf-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  position: relative;
}

/* Brand Logo */
.mf-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.mf-logo-img {
  height: 36px;
  width: auto;
  max-width: 245px;
  object-fit: contain;
  display: block;
}

/* Navigation Links */
.mf-nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.mf-nav-item {
  position: relative;
}

.mf-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--mf-dark-nav);
  padding: 10px 14px;
  border-radius: var(--mf-radius-sm);
  transition: var(--mf-transition);
  cursor: pointer;
  white-space: nowrap;
}

.mf-nav-link .mf-chevron {
  width: 13px;
  height: 13px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  stroke: currentColor;
  stroke-width: 2.2;
}

.mf-nav-item:hover .mf-nav-link {
  background-color: rgba(255, 255, 255, 0.35);
  color: #041f0c;
}

.mf-nav-item:hover .mf-chevron {
  transform: rotate(180deg);
}

/* Modern Hover Dropdown Menu matching design screenshot */
.mf-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #ffffff;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.16), 0 6px 16px -2px rgba(0, 0, 0, 0.08);
  border-top: 3px solid #116535;
  border-left: 1px solid rgba(15, 23, 42, 0.04);
  border-right: 1px solid rgba(15, 23, 42, 0.04);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  pointer-events: none;
  z-index: 1050;
}

/* Bridge gap so hover doesn't break */
.mf-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.mf-nav-item:hover .mf-dropdown,
.mf-nav-item:focus-within .mf-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mf-dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: #2563eb;
  /* Clean vibrant blue matching design screenshot */
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.mf-dropdown-link:hover {
  background-color: #f8fafc;
  color: #1d4ed8;
  transform: translateX(3px);
}

.mf-dropdown-icon {
  width: 19px;
  height: 19px;
  color: #15803d;
  /* Rich green outline matching screenshot */
  flex-shrink: 0;
  stroke-width: 1.8;
  stroke: currentColor;
  fill: none;
  display: inline-block;
}

.mf-dropdown-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: #dcfce7;
  color: #15803d;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.mf-dropdown-divider {
  height: 1px;
  background-color: #f1f5f9;
  margin: 6px 8px;
}

/* ==========================================================================
   CONSOLIDATED 'MY ACCOUNT' ACTION & HUB DROPDOWN
   Unified account controls, shopping basket, updates & portals in one place
   ========================================================================== */
.mf-header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.mf-profile-action {
  position: relative;
  flex-shrink: 0;
}

.mf-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #121820;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: var(--mf-transition);
  white-space: nowrap;
}

.mf-profile-btn:hover {
  background-color: #0b0f14;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

.mf-profile-icon {
  width: 16px;
  height: 16px;
  color: #a7f3d0;
  flex-shrink: 0;
}

.mf-profile-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.1px;
}

.mf-profile-cart-badge {
  background: #22c55e;
  color: #ffffff;
  border-radius: 9999px;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1;
  border: 1.5px solid #121820;
}

.mf-profile-notif-dot {
  background: #ef4444;
  color: #ffffff;
  border-radius: 9999px;
  font-size: 10px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1;
  border: 1.5px solid #121820;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

.mf-profile-caret {
  width: 12px;
  height: 12px;
  opacity: 0.75;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.mf-profile-action:hover .mf-profile-caret,
.mf-profile-action.is-open .mf-profile-caret {
  transform: rotate(180deg);
}

/* Consolidated Profile Dropdown Hub */
.mf-profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 330px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 45px -8px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.08);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
  z-index: 1060;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}

.mf-profile-dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.mf-profile-action:hover .mf-profile-dropdown,
.mf-profile-action:focus-within .mf-profile-dropdown,
.mf-profile-action.is-open .mf-profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* User Profile Card */
.mf-profile-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
  margin-bottom: 8px;
}

.mf-profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #047857);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.mf-profile-avatar.guest-avatar {
  background: linear-gradient(135deg, #64748b, #334155);
  box-shadow: 0 2px 6px rgba(51, 65, 85, 0.25);
}

.mf-profile-user-info {
  flex: 1;
  min-width: 0;
}

.mf-profile-user-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-profile-user-email {
  font-size: 11.5px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 2px;
}

.mf-profile-role-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  color: #047857;
  background: #d1fae5;
  padding: 1.5px 6.5px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Guest Buttons */
.mf-profile-guest-btns {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.mf-profile-btn-primary {
  flex: 1;
  text-align: center;
  background: #166534;
  color: #ffffff;
  font-weight: 700;
  font-size: 12.5px;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.mf-profile-btn-primary:hover {
  background: #0d522b;
  color: #ffffff;
}

.mf-profile-btn-outline {
  flex: 1;
  text-align: center;
  background: #ffffff;
  color: #166534;
  border: 1.5px solid #166534;
  font-weight: 700;
  font-size: 12.5px;
  padding: 6.5px 10px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.mf-profile-btn-outline:hover {
  background: #f0fdf4;
  color: #0d522b;
}

/* Shopping Cart Card Inside Dropdown */
.mf-profile-cart-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  margin-bottom: 10px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.mf-profile-cart-card:hover {
  background: #dcfce7;
  border-color: #86efac;
  transform: translateX(2px);
}

.mf-profile-cart-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #166534;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mf-profile-cart-details {
  flex: 1;
  min-width: 0;
}

.mf-profile-cart-heading {
  font-size: 12.5px;
  font-weight: 800;
  color: #14532d;
  line-height: 1.25;
}

.mf-profile-cart-status {
  font-size: 11px;
  color: #166534;
  font-weight: 600;
}

.mf-profile-cart-arrow {
  color: #166534;
  display: flex;
  align-items: center;
  transition: transform 0.15s ease;
}

.mf-profile-cart-card:hover .mf-profile-cart-arrow {
  transform: translateX(3px);
}

/* Section Titles inside Profile Dropdown */
.mf-profile-section-title {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin: 8px 6px 4px;
}

/* Notification Feed inside Profile Dropdown */
.mf-profile-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 6px 4px;
}

.mf-profile-notif-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 6px;
}

.mf-profile-notif-list .mf-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  border-bottom: none;
  background: transparent;
  transition: background 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.mf-profile-notif-list .mf-notif-item:hover {
  background: #f8fafc;
}

.mf-profile-notif-list .mf-notif-item.is-unread {
  background: #f0fdf4;
}

.mf-profile-notif-list .mf-notif-item.is-unread:hover {
  background: #dcfce7;
}

.mf-profile-notif-list .mf-notif-item-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mf-profile-notif-list .mf-notif-item-icon.icon-exam {
  background: #fee2e2;
  color: #dc2626;
}

.mf-profile-notif-list .mf-notif-item-icon.icon-scheme {
  background: #dcfce7;
  color: #166534;
}

.mf-profile-notif-list .mf-notif-item-icon.icon-payment {
  background: #fef3c7;
  color: #d97706;
}

.mf-profile-notif-list .mf-notif-item-body {
  flex: 1;
  min-width: 0;
}

.mf-profile-notif-list .mf-notif-item-title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.mf-profile-notif-list .mf-notif-item-text {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
  margin-top: 1px;
}

.mf-profile-notif-list .mf-notif-item-time {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
  font-weight: 500;
}

.mf-notif-mark-read {
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 700;
  color: #0284c7;
  cursor: pointer;
  padding: 2px 4px;
}

.mf-notif-mark-read:hover {
  text-decoration: underline;
}

.mf-logout-link:hover {
  background-color: #fee2e2 !important;
  color: #dc2626 !important;
}

/* ==========================================================================
   MOBILE HEADER ACTIONS & ANIMATED HAMBURGER TOGGLE
   ========================================================================== */
.mf-mobile-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.mf-mobile-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--mf-dark-nav);
  text-decoration: none;
  transition: all 0.18s ease;
}

.mf-mobile-cart-btn:hover {
  background-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

.mf-mobile-cart-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.mf-mobile-cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background-color: #166534;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 9999px;
  border: 2px solid var(--mf-mint-header);
  line-height: 1.2;
}

/* Modern Hamburger Toggle Button */
.mf-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--mf-mint-border);
  padding: 0;
  cursor: pointer;
  color: var(--mf-dark-nav);
  transition: all 0.2s ease;
  z-index: 1001;
}

.mf-mobile-toggle:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.mf-hamburger-box {
  width: 20px;
  height: 14px;
  position: relative;
  display: inline-block;
}

.mf-hamburger-inner,
.mf-hamburger-inner::before,
.mf-hamburger-inner::after {
  width: 20px;
  height: 2px;
  background-color: var(--mf-dark-nav);
  border-radius: 2px;
  position: absolute;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), top 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.18s ease;
}

.mf-hamburger-inner {
  top: 6px;
  left: 0;
}

.mf-hamburger-inner::before {
  content: '';
  top: -6px;
  left: 0;
}

.mf-hamburger-inner::after {
  content: '';
  top: 6px;
  left: 0;
}

/* Active State transforms into an X */
.mf-mobile-toggle.is-active .mf-hamburger-inner {
  transform: rotate(45deg);
}

.mf-mobile-toggle.is-active .mf-hamburger-inner::before {
  top: 0;
  opacity: 0;
}

.mf-mobile-toggle.is-active .mf-hamburger-inner::after {
  top: 0;
  transform: rotate(-90deg);
}

/* Desktop Profile Mini Avatar */
.mf-profile-avatar-mini {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

/* ==========================================================================
   MODERN MOBILE DRAWER MENU & BACKDROP
   ========================================================================== */
.mf-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.mf-drawer-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

/* Drawer Container */
.mf-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 340px;
  max-width: 86vw;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 2200;
  box-shadow: -10px 0 35px rgba(15, 23, 42, 0.22);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mf-drawer.is-open {
  transform: translateX(0);
}

body.mf-drawer-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Drawer Header */
.mf-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: var(--mf-mint-header);
  border-bottom: 1px solid var(--mf-mint-border);
  flex-shrink: 0;
}

.mf-drawer-brand {
  display: flex;
  align-items: center;
}

.mf-drawer-logo {
  height: 30px;
  width: auto;
  max-width: 205px;
  object-fit: contain;
  display: block;
}

.mf-drawer-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  color: var(--mf-dark-nav);
  transition: all 0.18s ease;
}

.mf-drawer-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.95);
  transform: scale(1.05);
}

.mf-drawer-close-btn svg {
  width: 20px;
  height: 20px;
}

/* Drawer Scrollable Body */
.mf-drawer-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px 18px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* --------------------------------------------------------------------------
   DRAWER ACCOUNT CARD (Logged In & Logged Out States)
   -------------------------------------------------------------------------- */
.mf-drawer-account-box {
  width: 100%;
}

/* Logged In User Card */
.mf-drawer-user-card {
  background-color: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mf-drawer-user-card.is-open {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.mf-drawer-user-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s ease;
}

.mf-drawer-user-trigger:hover {
  background-color: #f1f5f9;
}

.mf-drawer-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #166534, #0d9488);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(22, 101, 52, 0.25);
}

.mf-drawer-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mf-drawer-avatar-initial {
  display: block;
}

.mf-drawer-user-details {
  flex: 1;
  min-width: 0;
}

.mf-drawer-user-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.mf-drawer-user-email {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.mf-drawer-role-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 4px;
  background-color: #e0f2fe;
  color: #0369a1;
  margin-top: 4px;
}

.mf-drawer-user-caret {
  width: 18px;
  height: 18px;
  color: #64748b;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.mf-drawer-user-card.is-open .mf-drawer-user-caret {
  transform: rotate(180deg);
}

/* User Submenu ('dashboard, logout, etc') */
.mf-drawer-user-dropdown {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, padding 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background-color: #ffffff;
  border-top: 1px solid transparent;
  padding: 0 8px;
}

.mf-drawer-user-card.is-open .mf-drawer-user-dropdown {
  max-height: 380px;
  opacity: 1;
  padding: 8px 8px 10px;
  border-top-color: #e2e8f0;
}

.mf-drawer-sub-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.mf-drawer-sub-item:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.mf-drawer-sub-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
}

.mf-drawer-sub-item.is-primary {
  color: #166534;
  font-weight: 700;
}

.mf-drawer-sub-item.is-primary:hover {
  background-color: #f0fdf4;
}

.mf-drawer-sub-item.is-logout {
  color: #dc2626;
  font-weight: 700;
}

.mf-drawer-sub-item.is-logout:hover {
  background-color: #fee2e2;
  color: #b91c1c;
}

.mf-drawer-sub-divider {
  height: 1px;
  background-color: #f1f5f9;
  margin: 4px 6px;
}

/* Logged Out Guest Card */
.mf-drawer-guest-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mf-drawer-guest-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mf-drawer-guest-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  flex-shrink: 0;
}

.mf-drawer-guest-icon svg {
  width: 22px;
  height: 22px;
}

.mf-drawer-guest-text {
  flex: 1;
  min-width: 0;
}

.mf-drawer-guest-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.mf-drawer-guest-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.mf-drawer-guest-btns {
  display: flex;
  gap: 8px;
}

.mf-drawer-btn-login {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  background-color: #166534;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.18s ease;
}

.mf-drawer-btn-login:hover {
  background-color: #14532d;
}

.mf-drawer-btn-login svg {
  width: 15px;
  height: 15px;
}

.mf-drawer-btn-register {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background-color: #ffffff;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.18s ease;
}

.mf-drawer-btn-register:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

.mf-drawer-seller-banner {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #0369a1;
  padding: 7px 10px;
  background-color: #e0f2fe;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.mf-drawer-seller-banner:hover {
  background-color: #bae6fd;
}

/* --------------------------------------------------------------------------
   DRAWER QUICK SEARCH
   -------------------------------------------------------------------------- */
.mf-drawer-search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.mf-drawer-search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #64748b;
  pointer-events: none;
}

.mf-drawer-search-input {
  width: 100%;
  padding: 10px 38px 10px 36px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13.5px;
  font-family: inherit;
  color: #0f172a;
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.mf-drawer-search-input:focus {
  border-color: #166534;
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.12);
}

.mf-drawer-search-submit {
  position: absolute;
  right: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #166534;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mf-drawer-search-submit svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   DRAWER NAVIGATION ACCORDIONS
   -------------------------------------------------------------------------- */
.mf-drawer-nav-section {
  display: flex;
  flex-direction: column;
}

.mf-drawer-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #94a3b8;
  margin: 0 0 8px 4px;
}

.mf-drawer-accordion-item {
  border-bottom: 1px solid #f1f5f9;
}

.mf-drawer-accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  transition: color 0.15s ease;
}

.mf-drawer-accordion-btn:hover {
  color: #166534;
}

.mf-drawer-cat-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mf-drawer-cat-icon {
  width: 18px;
  height: 18px;
  color: #166534;
  flex-shrink: 0;
}

.mf-drawer-accordion-caret {
  width: 16px;
  height: 16px;
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.mf-drawer-accordion-item.is-open .mf-drawer-accordion-caret {
  transform: rotate(180deg);
}

.mf-drawer-accordion-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.26s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, padding 0.2s ease;
  display: flex;
  flex-direction: column;
  padding-left: 28px;
}

.mf-drawer-accordion-item.is-open .mf-drawer-accordion-panel {
  max-height: 280px;
  opacity: 1;
  padding-bottom: 10px;
}

.mf-drawer-panel-link {
  display: block;
  padding: 7px 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.mf-drawer-panel-link:hover {
  color: #166534;
  background-color: #f0fdf4;
}

/* --------------------------------------------------------------------------
   DRAWER VIP BANNER
   -------------------------------------------------------------------------- */
.mf-drawer-vip-card {
  display: block;
  background: linear-gradient(135deg, #0d9488, #06b6d4);
  color: #ffffff;
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mf-drawer-vip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.32);
}

.mf-drawer-vip-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.mf-drawer-vip-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.mf-drawer-vip-sub {
  font-size: 12px;
  opacity: 0.92;
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   DRAWER FOOTER (Customer Care & Contact)
   -------------------------------------------------------------------------- */
.mf-drawer-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mf-drawer-footer-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #94a3b8;
}

.mf-drawer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mf-drawer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: color 0.15s ease;
}

.mf-drawer-contact-item:hover {
  color: #166534;
}

.mf-drawer-contact-item svg {
  width: 15px;
  height: 15px;
  color: #166534;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   ORANGE SUBSCRIPTION BAR (For Non-Subscribers beneath navigation)
   Exact match to screenshot: warm amber bar, dark text, dark Subscribe pill
   -------------------------------------------------------------------------- */
.mf-sub-bar {
  background-color: #ffc107;
  padding: 7px 16px;
  width: 100%;
  border-bottom: 1px solid #e0a800;
  position: relative;
  z-index: 90;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mf-sub-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.mf-sub-bar-text {
  font-family: var(--mf-font-main);
  font-size: 14.5px;
  color: #1e293b;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.mf-sub-bar-text strong {
  font-weight: 800;
  color: var(--mf-dark-text);
}

.mf-sub-pill-btn {
  background-color: #1e293b;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 4px 16px;
  font-family: var(--mf-font-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.18);
  text-decoration: none;
  line-height: 1.4;
}

.mf-sub-pill-btn:hover {
  background-color: var(--mf-dark-text);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.28);
  color: #ffffff;
}

/* ==========================================================================
   FOOTER (Replicating exact screenshot layout)
   ========================================================================== */
.mf-footer {
  background-color: var(--mf-footer-bg);
  border-top: 1px solid var(--mf-footer-border);
  padding-top: 54px;
  font-size: 14px;
  color: var(--mf-body-text);
  margin-top: 50px;
  overflow-x: clip;
  width: 100%;
}

.mf-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 36px 20px;
  padding-bottom: 50px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.mf-footer-col,
.mf-footer-brand-col,
.mf-footer-newsletter-col {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Column 1: Brand & Contact Info */
.mf-footer-brand-col {
  padding-right: 12px;
}

.mf-footer-logo-img {
  height: 38px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 16px;
  display: block;
}

.mf-footer-about {
  font-size: 13.5px;
  line-height: 1.62;
  color: #475569;
  margin-bottom: 20px;
}

.mf-footer-learn-more {
  color: #0369a1;
  font-weight: 700;
  display: inline-block;
  text-decoration: none;
  transition: color 0.15s ease;
}

.mf-footer-learn-more:hover {
  color: #0284c7;
  text-decoration: underline;
}

.mf-footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mf-footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #0284c7;
  text-decoration: none;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.mf-footer-contact-item svg {
  width: 16px;
  height: 16px;
  stroke: #16a34a;
  stroke-width: 2;
  flex-shrink: 0;
}

.mf-footer-contact-item:hover {
  color: #0369a1;
}

/* Nav Columns (Columns 2 - 5) */
.mf-footer-col {
  display: flex;
  flex-direction: column;
}

.mf-footer-heading-wrap {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 18px;
  position: relative;
}

.mf-footer-heading-bar {
  width: 2.5px;
  height: 15px;
  background-color: #16a34a;
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 1px;
}

.mf-footer-heading-icon {
  width: 15px;
  height: 15px;
  stroke: #16a34a;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 1px;
}

.mf-footer-heading {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #166534;
  line-height: 1.35;
}

.mf-footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.mf-footer-link {
  font-size: 13.5px;
  color: #1d4ed8;
  transition: color 0.15s ease;
  display: inline-block;
  line-height: 1.45;
  text-decoration: none;
}

.mf-footer-link:hover {
  color: #1e40af;
  text-decoration: underline;
}

/* Column 6: Stay in the Loop / Newsletter */
.mf-footer-newsletter-col {
  padding-left: 0;
  min-width: 0;
  max-width: 100%;
}

.mf-newsletter-kicker {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #16a34a;
  margin-bottom: 8px;
}

.mf-newsletter-title {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.25;
}

.mf-newsletter-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  margin-bottom: 16px;
}

.mf-newsletter-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 18px;
  width: 100%;
  max-width: 380px;
}

.mf-newsletter-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #0f172a;
  border-right: none;
  border-radius: 0;
  height: 42px;
  box-sizing: border-box;
}

.mf-newsletter-input-wrap:focus-within {
  border-color: var(--mf-primary-green);
  box-shadow: inset 0 0 0 0.5px var(--mf-primary-green);
}

.mf-newsletter-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 12px;
  font-size: 14.5px;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  min-width: 0;
  height: 100%;
}

.mf-newsletter-input::placeholder {
  color: #475569;
  opacity: 1;
}

.mf-newsletter-input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 10px;
  color: #0d9488;
}

.mf-newsletter-input-icon svg {
  width: 18px;
  height: 18px;
}

.mf-newsletter-btn {
  background-color: #146c36;
  color: #ffffff;
  border: 1.5px solid #146c36;
  border-radius: 0 6px 6px 0;
  height: 42px;
  padding: 0 20px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.mf-newsletter-btn:hover {
  background-color: #0f5128;
  border-color: #0f5128;
}

/* Social Icon Circles */
.mf-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mf-social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #15803d;
  background-color: #ffffff;
  transition: all 0.15s ease;
}

.mf-social-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.mf-social-icon:hover {
  background-color: #15803d;
  color: #ffffff;
  border-color: #15803d;
}

/* Sub-Footer Bottom Bar */
.mf-footer-bottom {
  border-top: 1px solid var(--mf-footer-border);
  padding: 20px 0;
  font-size: 13px;
  color: #64748b;
}

.mf-footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.mf-footer-copy {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.mf-footer-legal-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.mf-footer-legal-link {
  color: #64748b;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.mf-footer-legal-link:hover {
  color: #0f172a;
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================================================== */
@media (max-width: 1320px) {
  .mf-nav-menu {
    gap: 12px;
  }

  .mf-nav-link {
    font-size: 14.5px;
    padding: 8px 10px;
  }

  .mf-footer-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
    row-gap: 36px;
    column-gap: 22px;
  }

  .mf-footer-newsletter-col {
    grid-column: 1 / -1;
    max-width: 520px;
    padding-left: 0;
  }
}

@media (min-width: 1025px) {
  .mf-mobile-actions {
    display: none !important;
  }

  .mf-drawer {
    display: none !important;
  }

  .mf-drawer-backdrop {
    display: none !important;
  }
}

@media (max-width: 1024px) {

  /* Hide desktop horizontal menu & desktop unified account button */
  .mf-nav-menu {
    display: none !important;
  }

  .mf-header-actions {
    display: none !important;
  }

  /* Show mobile header actions on right */
  .mf-mobile-actions {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
  }

  .mf-mobile-toggle {
    display: inline-flex !important;
  }

  .mf-nav-wrapper {
    height: 70px;
  }

  .mf-logo-img {
    height: 30px;
    max-width: 200px;
  }

  .mf-drawer {
    display: flex !important;
  }

  .mf-drawer-backdrop {
    display: block !important;
  }

  .mf-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
  }

  .mf-footer-brand-col {
    grid-column: 1 / -1;
    padding-right: 0;
    max-width: 560px;
  }

  .mf-footer-newsletter-col {
    grid-column: 1 / -1;
    max-width: 520px;
    padding-left: 0;
  }
}

@media (max-width: 600px) {
  .mf-logo-img {
    height: 26px;
    max-width: 175px;
  }

  .mf-topbar-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .mf-footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .mf-footer-brand-col,
  .mf-footer-newsletter-col {
    max-width: 100%;
  }

  .mf-footer-links {
    gap: 12px;
  }

  .mf-footer-link {
    padding: 2px 0;
  }

  .mf-footer-contact-item {
    padding: 3px 0;
    min-height: 36px;
  }

  .mf-footer-bottom-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    align-items: center;
  }

  .mf-footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
  }

  .mf-footer-legal-link {
    font-size: 13px;
    padding: 6px 8px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
  }

  .mf-newsletter-form {
    flex-direction: row;
    align-items: stretch;
    border: none;
    background: transparent;
    gap: 0;
    box-shadow: none;
    overflow: visible;
    width: 100%;
    max-width: 100%;
  }

  .mf-newsletter-input-wrap {
    flex: 1;
    width: auto;
    height: 42px;
    border: 1.5px solid #0f172a;
    border-right: none;
    border-radius: 0;
  }

  .mf-newsletter-input {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 10px !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 14px;
  }

  .mf-newsletter-btn {
    border-radius: 0 6px 6px 0;
    height: 42px;
    padding: 0 16px;
    width: auto;
    font-size: 14px;
    font-weight: 700;
  }

  .mf-social-icon {
    width: 38px;
    height: 38px;
  }

  .mf-social-icon svg {
    width: 16px;
    height: 16px;
  }
}

/* --------------------------------------------------------------------------
   FLOATING CART BAR (Matches live mwalimufocus.co.ke layout)
   -------------------------------------------------------------------------- */
.mf-floating-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #98FB98;
  border-top: 1.5px solid #7be37b;
  padding: 10px 0;
  text-align: center;
  z-index: 999;
  box-shadow: 0 -4px 16px rgba(11, 52, 61, 0.08);
}

.mf-floating-cart-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mf-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0d3d1a;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.mf-cart-link:hover {
  transform: scale(1.1);
  color: #042a0f;
}

.mf-cart-link svg {
  width: 28px;
  height: 28px;
  stroke: #0d3d1a;
}

.mf-cart-badge {
  position: absolute;
  top: -6px;
  right: -12px;
  background-color: #116535;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  border: 1.5px solid #ffffff;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   AUTHENTICATION MODALS (Account Choice, Register Customer/Vendor, Login)
   -------------------------------------------------------------------------- */
.mf-auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 52, 61, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2500;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mf-auth-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.mf-auth-modal-dialog {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  max-height: min(90vh, 640px);
  max-height: min(90dvh, 640px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 45px -10px rgba(11, 52, 61, 0.25);
  overflow: hidden;
  transform: translateY(15px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.mf-auth-modal.is-active .mf-auth-modal-dialog {
  transform: translateY(0) scale(1);
}

.mf-auth-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #eef2f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  flex-shrink: 0;
}

.mf-auth-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #0b343d;
  margin: 0;
  width: 100%;
}

.mf-auth-modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  position: absolute;
  right: 18px;
  top: 18px;
}

.mf-auth-modal-close:hover {
  color: #0b343d;
}

.mf-auth-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.mf-auth-btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.mf-btn-auth-primary {
  background: #116535;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  padding: 11px 22px;
  cursor: pointer;
  flex: 1;
  transition: background 0.18s ease;
}

.mf-btn-auth-primary:hover {
  background: #0d522b;
}

.mf-btn-auth-outline {
  background: transparent;
  color: #0b343d;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.mf-btn-auth-outline:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.mf-auth-modal-footer {
  padding: 12px 24px 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}