/* ==========================================================================
   MEDIGLOBE HEALTHCARE — PREMIUM E-COMMERCE DESIGN SYSTEM & STYLES
   ========================================================================== */

/* Topbar */
.mg-topbar {
  background-color: var(--mg-primary-dark);
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mg-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mg-topbar-left, .mg-topbar-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.mg-topbar-link {
  color: #cbd5e1;
}

.mg-topbar-link:hover {
  color: var(--mg-accent);
}

/* Header */
.mg-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.mg-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.5rem;
}

.mg-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.mg-nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.mg-nav-list a {
  font-weight: 600;
  color: var(--mg-text-main);
  font-size: 0.98rem;
}

.mg-nav-list a:hover {
  color: var(--mg-primary);
}

.mg-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Search Form */
.mg-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.mg-search-input {
  padding: 0.5rem 2.2rem 0.5rem 1rem;
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius-sm);
  font-size: 0.9rem;
  outline: none;
  transition: var(--mg-transition);
  width: 180px;
}

.mg-search-input:focus {
  border-color: var(--mg-primary);
  width: 230px;
}

.mg-search-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mg-text-muted);
}

/* Buttons */
.mg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  font-weight: 700;
  border-radius: var(--mg-radius-sm);
  transition: var(--mg-transition);
  cursor: pointer;
  border: none;
  text-align: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.mg-btn-primary {
  background-color: var(--mg-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(13, 92, 58, 0.25);
}

.mg-btn-primary:hover {
  background-color: var(--mg-primary-dark);
  transform: translateY(-2px);
}

.mg-btn-accent {
  background-color: var(--mg-accent);
  color: #ffffff !important;
}

.mg-btn-accent:hover {
  background-color: var(--mg-accent-hover);
}

.mg-btn-whatsapp {
  background-color: #25d366;
  color: #ffffff !important;
}

.mg-btn-whatsapp:hover {
  background-color: #1eb957;
  transform: translateY(-2px);
}

.mg-btn-outline {
  border: 2px solid var(--mg-primary);
  color: var(--mg-primary) !important;
  background: transparent;
}

.mg-btn-outline:hover {
  background-color: var(--mg-primary);
  color: #ffffff !important;
}

.mg-btn-block {
  width: 100%;
}

.mg-btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
}

.mg-btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

/* Mobile Toggle */
.mg-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mg-mobile-toggle span {
  width: 24px;
  height: 3px;
  background-color: var(--mg-text-main);
  border-radius: 2px;
}

.mg-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: #ffffff;
  z-index: 10000;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  transition: right 0.4s ease;
  padding: 2rem 1.5rem;
}

.mg-mobile-menu.active {
  right: 0;
}

.mg-mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--mg-border);
}

.mg-mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.mg-mobile-nav-list a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--mg-text-main);
}

/* Hero Section */
.mg-hero {
  padding: 4rem 0 5rem;
  background: linear-gradient(135deg, #f0f7f4 0%, #ffffff 100%);
  border-bottom: 1px solid var(--mg-border);
}

.mg-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.mg-pill-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background-color: rgba(13, 92, 58, 0.1);
  color: var(--mg-primary);
  font-weight: 700;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.mg-hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  color: var(--mg-primary-dark);
}

.mg-text-gradient {
  color: var(--mg-primary);
}

.mg-hero-subtitle {
  font-size: 1.1rem;
  color: var(--mg-text-muted);
  margin-bottom: 2rem;
}

.mg-hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.mg-hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mg-border);
}

.mg-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--mg-primary);
  display: block;
}

.mg-stat-lbl {
  font-size: 0.82rem;
  color: var(--mg-text-muted);
}

.mg-stat-divider {
  width: 1px;
  height: 35px;
  background: var(--mg-border);
}

.mg-hero-visual {
  position: relative;
}

.mg-hero-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--mg-radius);
  box-shadow: var(--mg-shadow-lg);
  position: relative;
  text-align: center;
}

.mg-hero-img {
  max-height: 380px;
  margin: 0 auto;
  object-fit: contain;
}

.mg-hero-floating-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: #ffffff;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.88rem;
}

/* Sections */
.mg-section {
  padding: 4.5rem 0;
}

.mg-bg-mint {
  background-color: var(--mg-bg-mint);
}

.mg-section-header {
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.text-center {
  text-align: center;

}

.text-center .mg-section-header {
  justify-content: center;
}

.mg-sub-title {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mg-accent);

}

.mg-section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--mg-primary-dark);
}

.mg-section-desc {
  color: var(--mg-text-muted);
  font-size: 1.05rem;
}

/* Category Cards */
.mg-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.mg-category-card {
  background: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: var(--mg-radius);
  box-shadow: var(--mg-shadow);
  text-align: center;
  transition: var(--mg-transition);
  border: 1px solid var(--mg-border);
}

.mg-category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--mg-shadow-lg);
  border-color: var(--mg-primary);
}

.mg-cat-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.mg-category-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  color: var(--mg-primary-dark);
}

.mg-category-card p {
  color: var(--mg-text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.mg-cat-link {
  font-weight: 700;
  color: var(--mg-primary);
}

/* Filter Buttons */
.mg-filter-buttons {
  display: flex;
  gap: 0.6rem;
}

.mg-filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  border: 1px solid var(--mg-border);
  background: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: var(--mg-transition);

}

.mg-filter-btn.active, .mg-filter-btn:hover {
  background: var(--mg-primary);
  color: #ffffff;
  border-color: var(--mg-primary);
}

/* Product Grid & Cards */
.mg-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}

.mg-product-card {
  background: #ffffff;
  border-radius: var(--mg-radius);
  box-shadow: var(--mg-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--mg-transition);
  border: 1px solid var(--mg-border);
}

.mg-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--mg-shadow-lg);
  border-color: var(--mg-primary);
}

.mg-badge-wrap {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
}

.mg-badge-discount {
  background: #e11d48;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.mg-product-img-wrap {
  background: #f8faf9;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
}

.mg-product-img {
  max-height: 180px;
  width: auto;
  object-fit: contain;
  transition: var(--mg-transition);
}

.mg-product-card:hover .mg-product-img {
  transform: scale(1.05);
}

.mg-product-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.mg-product-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--mg-accent);
  font-weight: 700;

}

.mg-product-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0.3rem 0 0.5rem;
  height: 2.7em;
  overflow: hidden;
}

.mg-product-title a {
  color: var(--mg-text-main);
}

.mg-product-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
}

.mg-stars {
  color: #f59e0b;
}

.mg-rating-num {
  color: var(--mg-text-muted);
}

.mg-product-short-desc {
  font-size: 0.85rem;
  color: var(--mg-text-muted);
  line-height: 1.4;
  margin-bottom: 1rem;
  height: 2.8em;
  overflow: hidden;
}

.mg-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--mg-border);
  margin-bottom: 1rem;
}

.mg-price-group {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.mg-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--mg-primary-dark);
}

.mg-regular-price {
  font-size: 0.9rem;
  text-decoration: line-through;
  color: var(--mg-text-muted);
}

.mg-weight-tag {
  font-size: 0.78rem;
  background: var(--mg-bg-mint);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--mg-primary);
  font-weight: 600;
}

.mg-product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* About & Features */
.mg-about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.mg-lead-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mg-primary);
  margin-bottom: 1rem;
}

.mg-checklist {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-weight: 600;
}

.mg-info-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--mg-radius);
  box-shadow: var(--mg-shadow);
  margin-bottom: 1rem;
  border-left: 4px solid var(--mg-primary);
}

.mg-info-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  color: var(--mg-primary-dark);
}

.mg-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}

.mg-feature-box {
  background: #ffffff;
  padding: 2rem 1.5rem;
  border-radius: var(--mg-radius);
  border: 1px solid var(--mg-border);
  text-align: center;
}

.mg-feat-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

/* CTA Section */
.mg-cta-section {
  background: linear-gradient(135deg, var(--mg-primary-dark) 0%, var(--mg-primary) 100%);
  color: #ffffff;
  padding: 5rem 0;
}

.mg-cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.mg-cta-desc {
  font-size: 1.15rem;
  color: #e2e8f0;
  margin-bottom: 2rem;
}

.mg-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

/* Contact */
.mg-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.mg-contact-card {
  display: flex;
  gap: 1rem;
  background: #ffffff;
  padding: 1.2rem;
  border-radius: var(--mg-radius-sm);
  margin-top: 1rem;
  border: 1px solid var(--mg-border);
}

.mg-cc-icon {
  font-size: 1.6rem;
}

.mg-contact-form-wrap {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: var(--mg-radius);
  box-shadow: var(--mg-shadow);
}

.mg-form-group {
  margin-bottom: 1.2rem;
}

.mg-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.mg-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius-sm);
  font-size: 0.95rem;
  outline: none;
}

.mg-input:focus {
  border-color: var(--mg-primary);
}

/* Footer */
.mg-footer {
  background: #0f172a;
  color: #94a3b8;
  padding-top: 4.5rem;
}

.mg-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

.mg-footer-logo img {
  height: 48px;
  margin-bottom: 1rem;
}

.mg-footer-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.mg-footer-badges {
  display: flex;
  gap: 0.6rem;
}

.mg-mini-badge {
  background: rgba(255,255,255,0.08);
  color: #cbd5e1;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.mg-footer-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.mg-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.mg-footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
}

.mg-footer-links a:hover {
  color: #ffffff;
}

.mg-contact-row {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.mg-footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1.5rem 0;
  font-size: 0.88rem;
}

.mg-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mg-footer-legal {
  display: flex;
  gap: 1.5rem;
}

.mg-footer-legal a {
  color: #94a3b8;
}

/* Floating WhatsApp */
.mg-whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: transform 0.3s ease;
}

.mg-whatsapp-float:hover {
  transform: scale(1.1);
}

.mg-whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: #1e293b;
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mg-whatsapp-float:hover .mg-whatsapp-tooltip {
  opacity: 1;
}

/* Single Product Detail View */
.mg-breadcrumb-bar {
  background: var(--mg-bg-mint);
  padding: 0.8rem 0;
  font-size: 0.9rem;
  color: var(--mg-text-muted);
}

.mg-single-product-wrap {
  padding: 3.5rem 0;
}

.mg-sp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.mg-sp-main-img-wrap {
  background: #ffffff;
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  box-shadow: var(--mg-shadow);
}

.mg-sp-main-img {
  max-height: 420px;
  margin: 0 auto;
  object-fit: contain;
}

.mg-sp-discount-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #e11d48;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
}

.mg-sp-cat-tag {
  text-transform: uppercase;
  color: var(--mg-accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.mg-sp-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--mg-primary-dark);
  margin: 0.3rem 0 1rem;
  line-height: 1.25;
}

.mg-sp-meta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--mg-border);
}

.mg-sp-stock {
  color: #16a34a;
  font-weight: 700;
}

.mg-sp-price-box {
  background: var(--mg-bg-mint);
  padding: 1.2rem 1.5rem;
  border-radius: var(--mg-radius-sm);
  margin-bottom: 1.5rem;
}

.mg-sp-prices {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.mg-sp-current-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--mg-primary-dark);
}

.mg-sp-old-price {
  font-size: 1.2rem;
  text-decoration: line-through;
  color: var(--mg-text-muted);
}

.mg-sp-savings {
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.mg-sp-tax-note {
  font-size: 0.82rem;
  color: var(--mg-text-muted);
  display: block;
  margin-top: 0.3rem;
}

.mg-sp-short-desc {
  font-size: 1.05rem;
  color: var(--mg-text-main);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.mg-sp-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.mg-sp-benefit-pill {
  background: #ffffff;
  border: 1px solid var(--mg-border);
  padding: 0.6rem 1rem;
  border-radius: var(--mg-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}

.mg-sp-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.mg-sp-btn {
  flex: 1;
}

.mg-sp-guarantees {
  display: flex;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mg-border);
  font-size: 0.88rem;
  color: var(--mg-text-muted);
}

/* Tabs */
.mg-sp-tabs-wrap {
  background: #ffffff;
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius);
  overflow: hidden;
  box-shadow: var(--mg-shadow);
}

.mg-sp-tab-headers {
  display: flex;
  background: var(--mg-bg-light);
  border-bottom: 1px solid var(--mg-border);
}

.mg-sp-tab-btn {
  padding: 1rem 1.8rem;
  background: none;
  border: none;
  font-weight: 700;
  color: var(--mg-text-muted);
  cursor: pointer;
  transition: var(--mg-transition);
  border-bottom: 3px solid transparent;
}

.mg-sp-tab-btn.active, .mg-sp-tab-btn:hover {
  color: var(--mg-primary);
  border-bottom-color: var(--mg-primary);
  background: #ffffff;
}

.mg-sp-tab-content {
  padding: 2.5rem;
  display: none;
}

.mg-sp-tab-content.active {
  display: block;
}

/* Responsive Queries */
@media (max-width: 1024px) {
  .mg-products-grid { grid-template-columns: repeat(3, 1fr); }
  .mg-hero-grid, .mg-about-grid, .mg-contact-grid, .mg-sp-grid { grid-template-columns: 1fr; }
  .mg-footer-grid { grid-template-columns: 1fr 1fr; }
  .mg-features-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .mg-nav, .mg-search-form { display: none; }
  .mg-mobile-toggle { display: flex; }
  .mg-topbar-left { display: none; }
  .mg-products-grid { grid-template-columns: repeat(2, 1fr); }
  .mg-category-grid { grid-template-columns: 1fr; }
  .mg-hero-title { font-size: 2.2rem; }
}

@media (max-width: 480px) {
  .mg-products-grid { grid-template-columns: 1fr; }
  .mg-sp-actions { flex-direction: column; }
  .mg-footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   HEADER & NAVBAR STRICT FIX
   ========================================================================== */

.mg-topbar {
  background-color: #083c26 !important;
  color: #ffffff !important;
  font-size: 0.88rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
}

.mg-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mg-topbar-left, .mg-topbar-right {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.mg-phone-badge, .mg-tagline-badge, .mg-topbar-link {
  color: #ffffff !important;
  font-weight: 600;
}

.mg-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  width: 100%;
}

.mg-header-inner {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0.75rem 1.5rem !important;
  gap: 2rem !important;
  max-width: 1280px;
  margin: 0 auto;
}

/* LOGO STRICT SIZE FIX */
.mg-logo, a.custom-logo-link {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  max-width: 220px !important;
  height: 52px !important;
}

.mg-logo-img, .mg-logo img, a.custom-logo-link img, img.custom-logo {
  height: 52px !important;
  max-height: 52px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain !important;
  display: block !important;
}

/* NAV LINKS */
.mg-nav {
  display: flex !important;
  align-items: center !important;
  flex-grow: 1 !important;
  justify-content: center !important;
}

.mg-nav-list, ul.mg-nav-list, .mg-nav ul {
  display: flex !important;
  list-style: none !important;
  gap: 2.2rem !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
}

.mg-nav-list li, .mg-nav ul li {
  margin: 0 !important;
  padding: 0 !important;
}

.mg-nav-list a, .mg-nav ul li a {
  font-weight: 600 !important;
  color: #1e293b !important;
  font-size: 1.02rem !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
}

.mg-nav-list a:hover, .mg-nav ul li a:hover {
  color: #0d5c3a !important;
}

.mg-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 1.2rem !important;
  flex-shrink: 0 !important;
}

.mg-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.mg-search-input {
  padding: 0.5rem 2.2rem 0.5rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  width: 190px;
}

.mg-search-input:focus {
  border-color: #0d5c3a;
  width: 230px;
}

.mg-search-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
}

@media (max-width: 1024px) {
  .mg-nav-list { gap: 1.2rem !important; }
  .mg-search-input { width: 140px; }
}

@media (max-width: 850px) {
  .mg-nav, .mg-search-form { display: none !important; }
  .mg-mobile-toggle { display: flex !important; }
}

/* ==========================================================================
   GLOBAL HEADER FIX FOR ALL PAGES (HOMEPAGE, SINGLE PRODUCTS, SHOP ARCHIVES)
   ========================================================================== */

header, .mg-header, #mg-site-header, .site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 10000 !important;
  background-color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

header .container, .mg-header-inner, .mg-header .container, header .mg-header-inner {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0.75rem 1.5rem !important;
  gap: 2rem !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  width: 100% !important;
}

.mg-logo, a.custom-logo-link, header a.logo, header .logo, header .mg-logo {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  max-width: 220px !important;
  height: 52px !important;
  max-height: 52px !important;
  margin: 0 !important;
}

.mg-logo-img, .mg-logo img, a.custom-logo-link img, img.custom-logo, header img, .mg-header img, header .logo img {
  height: 52px !important;
  max-height: 52px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain !important;
  display: block !important;
}

.mg-nav, header nav, .mg-header nav {
  display: flex !important;
  align-items: center !important;
  flex-grow: 1 !important;
  justify-content: center !important;
}

.mg-nav-list, ul.mg-nav-list, .mg-nav ul, header nav ul {
  display: flex !important;
  list-style: none !important;
  gap: 2.2rem !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
}

.mg-nav-list li, header nav ul li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.mg-nav-list a, header nav ul li a {
  font-weight: 600 !important;
  color: #1e293b !important;
  font-size: 1.02rem !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
}

.mg-nav-list a:hover, header nav ul li a:hover {
  color: #0d5c3a !important;
}

.mg-header-actions, header .mg-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 1.2rem !important;
  flex-shrink: 0 !important;
}

@media (max-width: 1024px) {
  .mg-nav-list, header nav ul { gap: 1.2rem !important; }
}

@media (max-width: 850px) {
  .mg-nav, header nav { display: none !important; }
  .mg-mobile-toggle { display: flex !important; }
}

/* ==========================================================================
   ULTRA MOBILE RESPONSIVE DESIGN SYSTEM (320px - 768px Mobile Perfection)
   ========================================================================== */

/* Universal Viewport Boundary Guard */
html, body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.container, .mg-header-inner, .mg-topbar-inner, .mg-footer-grid {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

/* Mobile Header & Topbar */
@media (max-width: 768px) {
  .mg-topbar {
    padding: 0.4rem 0 !important;
    font-size: 0.8rem !important;
  }

  .mg-topbar-left {
    gap: 0.5rem !important;
  }

  .mg-tagline-badge, .mg-topbar-right .mg-topbar-link:not(:first-child) {
    display: none !important;
  }

  .mg-header-inner {
    padding: 0.5rem 1rem !important;
    gap: 0.8rem !important;
  }

  .mg-logo, a.custom-logo-link, header a.logo {
    max-width: 150px !important;
    height: 40px !important;
    max-height: 40px !important;
  }

  .mg-logo-img, .mg-logo img, a.custom-logo-link img, img.custom-logo, header img {
    height: 40px !important;
    max-height: 40px !important;
    max-width: 150px !important;
  }

  /* Hide Desktop Nav & Search on Mobile */
  .mg-nav, header nav, .mg-search-form {
    display: none !important;
  }

  /* Show Hamburger & Shop Now on Mobile */
  .mg-mobile-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4px !important;
    background: transparent !important;
    border: none !important;
    padding: 8px !important;
    cursor: pointer !important;
    z-index: 10001 !important;
  }

  .mg-mobile-toggle span {
    width: 22px !important;
    height: 2.5px !important;
    background-color: #1e293b !important;
    border-radius: 2px !important;
  }

  .mg-header-actions {
    gap: 0.6rem !important;
  }

  .mg-header-actions .mg-btn {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.82rem !important;
  }
}

/* Mobile Slide-out Drawer Menu */
.mg-mobile-menu {
  position: fixed !important;
  top: 0 !important;
  right: -100% !important;
  width: 85% !important;
  max-width: 320px !important;
  height: 100vh !important;
  background: #ffffff !important;
  z-index: 99999 !important;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2) !important;
  transition: right 0.35s ease-in-out !important;
  padding: 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
}

.mg-mobile-menu.active {
  right: 0 !important;
}

.mg-mobile-menu-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-bottom: 1rem !important;
  margin-bottom: 1.5rem !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.mg-mobile-title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #0d5c3a !important;
}

.mg-mobile-close {
  background: #f1f5f9 !important;
  border: none !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  font-size: 1.2rem !important;
  cursor: pointer !important;
  color: #334155 !important;
}

.mg-mobile-nav-list {
  list-style: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mg-mobile-nav-list a {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  text-decoration: none !important;
  display: block !important;
  padding: 0.6rem 0 !important;
  border-bottom: 1px solid #f8faf9 !important;
}

.mg-mobile-nav-list a:hover {
  color: #0d5c3a !important;
}

/* Mobile Hero Section */
@media (max-width: 768px) {
  .mg-hero {
    padding: 2.5rem 0 3rem !important;
  }

  .mg-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center !important;
  }

  .mg-hero-title {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  .mg-hero-subtitle {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
  }

  .mg-hero-actions {
    flex-direction: column !important;
    gap: 0.8rem !important;
    width: 100% !important;
  }

  .mg-hero-actions .mg-btn {
    width: 100% !important;
  }

  .mg-hero-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    justify-items: center !important;
  }

  .mg-stat-divider {
    display: none !important;
  }

  .mg-hero-img {
    max-height: 240px !important;
  }
}

/* Mobile Category Grid */
@media (max-width: 768px) {
  .mg-category-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }

  .mg-category-card {
    padding: 1.5rem !important;
  }
}

/* Mobile Filter Buttons & Products Grid */
@media (max-width: 768px) {
  .mg-section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    margin-bottom: 1.8rem !important;
  }

  .mg-filter-buttons {
    width: 100% !important;
    overflow-x: auto !important;
    padding-bottom: 0.5rem !important;
    white-space: nowrap !important;

  }

  .mg-filter-btn {
    padding: 0.4rem 1rem !important;
    font-size: 0.85rem !important;

  }

  .mg-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.8rem !important;
  }

  .mg-product-card {
    border-radius: 8px !important;
  }

  .mg-product-img-wrap {
    height: 150px !important;
    padding: 0.8rem !important;
  }

  .mg-product-img {
    max-height: 130px !important;
  }

  .mg-product-body {
    padding: 0.8rem !important;
  }

  .mg-product-cat {
    font-size: 0.68rem !important;
  }

  .mg-product-title {
    font-size: 0.88rem !important;
    height: 2.6em !important;
    margin: 0.2rem 0 0.4rem !important;
  }

  .mg-product-short-desc {
    display: none !important;
  }

  .mg-price-row {
    margin-bottom: 0.6rem !important;
    padding-top: 0.5rem !important;
  }

  .mg-price {
    font-size: 1.1rem !important;
  }

  .mg-regular-price {
    font-size: 0.8rem !important;
  }

  .mg-weight-tag {
    font-size: 0.7rem !important;
    padding: 0.15rem 0.35rem !important;
  }

  .mg-btn {
    min-height: 42px !important;
    font-size: 0.85rem !important;
  }
}

@media (max-width: 420px) {
  .mg-products-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile Single Product Page */
@media (max-width: 768px) {
  .mg-single-product-wrap {
    padding: 1.5rem 0 2.5rem !important;
  }

  .mg-sp-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    margin-bottom: 2rem !important;
  }

  .mg-sp-main-img-wrap {
    padding: 1.5rem !important;
  }

  .mg-sp-main-img {
    max-height: 260px !important;
  }

  .mg-sp-title {
    font-size: 1.5rem !important;
  }

  .mg-sp-current-price {
    font-size: 1.8rem !important;
  }

  .mg-sp-benefits-grid {
    grid-template-columns: 1fr !important;
  }

  .mg-sp-actions {
    flex-direction: column !important;
  }

  .mg-sp-tab-headers {
    overflow-x: auto !important;
    white-space: nowrap !important;

  }

  .mg-sp-tab-btn {
    padding: 0.8rem 1.2rem !important;
    font-size: 0.88rem !important;

  }

  .mg-sp-tab-content {
    padding: 1.5rem 1rem !important;
  }
}

/* Mobile Footer & About / Contact */
@media (max-width: 768px) {
  .mg-about-grid, .mg-contact-grid, .mg-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .mg-footer {
    padding-top: 2.5rem !important;
  }

  .mg-footer-bottom-inner {
    flex-direction: column !important;
    gap: 0.8rem !important;
    text-align: center !important;
  }

  .mg-contact-form-wrap {
    padding: 1.5rem !important;
  }

  .mg-input {
    font-size: 1rem !important; /* Prevents iOS auto-zoom on input focus */
  }
}

/* ==========================================================================
   COMPLETE MOBILE-FIRST & FLUID RESPONSIVE DESIGN SYSTEM
   ========================================================================== */

/* Prevent horizontal page overflow on all mobile viewports */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

.container {
  width: 100% !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 1.25rem !important;
  box-sizing: border-box !important;
}

/* Touch-friendly base sizing */
a, button, input, select, textarea {
  touch-action: manipulation;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* TABLET (<= 1024px) */
@media (max-width: 1024px) {
  .mg-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  
  .mg-about-grid, .mg-contact-grid, .mg-sp-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .mg-category-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.2rem !important;
  }

  .mg-products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.2rem !important;
  }

  .mg-features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.2rem !important;
  }

  .mg-footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }
}

/* MOBILE MEDIUM / SMALL TABLET (<= 850px) */
@media (max-width: 850px) {
  /* Topbar Mobile Alignment */
  .mg-topbar {
    padding: 0.5rem 0 !important;
  }

  .mg-topbar-inner {
    flex-direction: column !important;
    gap: 0.35rem !important;
    text-align: center !important;
  }

  .mg-topbar-left, .mg-topbar-right {
    justify-content: center !important;
    gap: 0.8rem !important;
    flex-wrap: wrap !important;
  }

  .mg-tagline-badge {
    display: none !important; /* Hide long text on mobile to conserve space */
  }

  /* Header Navigation */
  .mg-header-inner {
    padding: 0.6rem 1rem !important;
  }

  .mg-logo-img, .mg-logo img, a.custom-logo-link img, img.custom-logo, header img {
    height: 42px !important;
    max-height: 42px !important;
    max-width: 170px !important;
  }

  .mg-nav {
    display: none !important;
  }

  .mg-search-form {
    display: none !important;
  }

  .mg-mobile-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0.5rem !important;
    width: 44px !important;
    height: 44px !important;
  }

  .mg-mobile-toggle span {
    width: 22px !important;
    height: 2.5px !important;
    background-color: #1e293b !important;
    border-radius: 2px !important;
  }

  /* Mobile Drawer Overlay Menu */
  .mg-mobile-menu {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 85% !important;
    max-width: 320px !important;
    height: 100vh !important;
    background-color: #ffffff !important;
    z-index: 99999 !important;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15) !important;
    transition: right 0.35s ease !important;
    padding: 1.5rem !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
  }

  .mg-mobile-menu.active {
    right: 0 !important;
  }

  .mg-mobile-menu-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
    margin-bottom: 1.5rem !important;
  }

  .mg-mobile-title {
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    color: #0d5c3a !important;
  }

  .mg-mobile-close {
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    color: #64748b !important;
    padding: 0.2rem 0.5rem !important;
  }

  .mg-mobile-nav-list {
    list-style: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .mg-mobile-nav-list li a {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    display: block !important;
    padding: 0.6rem 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    text-decoration: none !important;
  }

  /* Hero Mobile */
  .mg-hero {
    padding: 2.5rem 0 3.5rem !important;
  }

  .mg-hero-title {
    font-size: 2.1rem !important;
    line-height: 1.2 !important;
  }

  .mg-hero-subtitle {
    font-size: 0.98rem !important;
    margin-bottom: 1.5rem !important;
  }

  .mg-hero-actions {
    flex-direction: column !important;
    gap: 0.8rem !important;
    width: 100% !important;
  }

  .mg-hero-actions .mg-btn {
    width: 100% !important;
  }

  .mg-hero-stats {
    flex-wrap: wrap !important;
    gap: 1rem !important;
    justify-content: space-between !important;
  }

  .mg-stat-divider {
    display: none !important;
  }

  .mg-category-grid {
    grid-template-columns: 1fr !important;
  }

  .mg-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.9rem !important;
  }

  .mg-product-card {
    border-radius: 10px !important;
  }

  .mg-product-img-wrap {
    height: 160px !important;
    padding: 0.8rem !important;
  }

  .mg-product-img {
    max-height: 140px !important;
  }

  .mg-product-body {
    padding: 0.85rem !important;
  }

  .mg-product-title {
    font-size: 0.92rem !important;
    height: 2.6em !important;
  }

  .mg-price {
    font-size: 1.1rem !important;
  }

  .mg-filter-buttons {
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 0.5rem !important;
    width: 100% !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* SMARTPHONE SMALL / NARROW (<= 480px / 414px / 390px / 375px / 320px) */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem !important;
  }

  .mg-hero-title {
    font-size: 1.75rem !important;
  }

  .mg-section-title {
    font-size: 1.6rem !important;
  }

  .mg-products-grid {
    grid-template-columns: 1fr !important; /* Single column on phones for full readability */
    gap: 1.2rem !important;
  }

  .mg-product-img-wrap {
    height: 200px !important;
  }

  .mg-product-img {
    max-height: 170px !important;
  }

  .mg-product-title {
    font-size: 1rem !important;
    height: auto !important;
  }

  .mg-price-row {
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
  }

  /* Single Product View Mobile */
  .mg-sp-title {
    font-size: 1.5rem !important;
  }

  .mg-sp-current-price {
    font-size: 1.8rem !important;
  }

  .mg-sp-actions {
    flex-direction: column !important;
    gap: 0.8rem !important;
  }

  .mg-sp-tab-headers {
    overflow-x: auto !important;
    white-space: nowrap !important;
  }

  .mg-sp-tab-btn {
    padding: 0.8rem 1.1rem !important;
    font-size: 0.88rem !important;
  }

  .mg-sp-tab-content {
    padding: 1.25rem !important;
  }

  /* Footer Mobile */
  .mg-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.8rem !important;
    text-align: center !important;
  }

  .mg-footer-logo img {
    margin: 0 auto 1rem !important;
  }

  .mg-footer-bottom-inner {
    flex-direction: column !important;
    gap: 0.8rem !important;
    text-align: center !important;
  }

  .mg-footer-legal {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
  }
}


/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE FIX
   ========================================================================== */
@media (max-width: 1024px) {
  .mg-products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .mg-category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .mg-hero-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }
  .mg-hero-title {
    font-size: 2.2rem !important;
  }
  .mg-about-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 850px) {
  /* Header Adjustments */
  .mg-nav, .mg-search-form, header nav {
    display: none !important;
  }
  .mg-mobile-toggle {
    display: flex !important;
    background: #0d5c3a;
    padding: 8px 10px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
  }
  .mg-mobile-toggle span {
    background-color: #fff;
    height: 2px;
    width: 20px;
    display: block;
  }
  .mg-header-actions, header .mg-header-actions {
    gap: 0.8rem !important;
  }
  .mg-btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  /* Grid Adjustments */
  .mg-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  .mg-category-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Hero Section */
  .mg-hero-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  .mg-hero-actions {
    justify-content: center;
  }
  .mg-hero-stats {
    justify-content: center;
  }
  
  /* Features */
  .mg-features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Contact */
  .mg-contact-grid {
    grid-template-columns: 1fr !important;
  }

  /* Footer */
  .mg-footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }
  .mg-footer-legal {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
  .mg-contact-row {
    justify-content: center !important;
  }
}

@media (max-width: 576px) {
  .mg-products-grid {
    grid-template-columns: 1fr !important;
  }
  .mg-features-grid {
    grid-template-columns: 1fr !important;
  }
  .mg-hero-title {
    font-size: 1.8rem !important;
  }
  .mg-section-title {
    font-size: 1.5rem !important;
  }
  .mg-topbar-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .mg-topbar-left, .mg-topbar-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }
  .mg-header-inner {
    padding: 0.6rem 1rem !important;
  }
  .mg-logo-img, .mg-logo img, a.custom-logo-link img {
    height: 40px !important;
    max-height: 40px !important;
    max-width: 150px !important;
  }
}


/* ==========================================================================
   FORCE MOBILE HEADER OVERRIDES (FIX FOR SPECIFICITY & OVERFLOW)
   ========================================================================== */
@media (max-width: 850px) {
  /* Aggressive hide of desktop nav items */
  .mg-nav, header nav, .mg-header nav, .mg-header .mg-nav, .mg-search-form {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
  }
  
  /* Ensure header container is flexible but doesn't stretch */
  .mg-header-inner, header .container {
    padding: 0.5rem 1rem !important;
    flex-wrap: nowrap !important;
    gap: 1rem !important;
  }
  
  .mg-header-actions {
    gap: 0.5rem !important;
  }
  
  .mg-mobile-toggle {
    display: flex !important;
    background: #0d5c3a !important;
  }
}

@media (max-width: 576px) {
  /* Hide the long tagline on very small screens to prevent topbar squishing */
  .mg-tagline-badge {
    display: none !important;
  }
  
  .mg-topbar-left, .mg-topbar-right {
    gap: 0.5rem !important;
    font-size: 0.75rem !important;
  }
  
  .mg-btn-sm {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.75rem !important;
  }
}
