/*
Theme Name: MiningGuide Child
Theme URI: https://mining.estudiofuria.com
Description: Child theme para MiningGuide - Marketplace B2B Minero
Author: Estudio Furia
Template: hello-elementor
Version: 1.0.0
Text Domain: miningguide-child
*/

/* =============================================
   CSS VARIABLES — DESIGN TOKENS
   ============================================= */
:root {
  --mg-dark:        #0d1117;
  --mg-dark-2:      #1b2b3e;
  --mg-dark-3:      #1c2333;
  --mg-dark-4:      #242d3d;
  --mg-dark-hero:   #1b2b3e;
  --mg-navy:        #1b2b3e;
  --mg-navy-2:      #213047;
  --mg-orange:      #f97316;
  --mg-orange-2:    #ea6b0a;
  --mg-orange-light:#fff3eb;
  --mg-text:        #ffffff;
  --mg-text-muted:  #94a3b8;
  --mg-text-dim:    #6e7681;
  --mg-border:      #30363d;
  --mg-border-light:#21262d;
  --mg-white:       #ffffff;
  --mg-verified:    #f97316;
  --mg-featured-bg: #f97316;
  --mg-card-bg:     #ffffff;
  --mg-card-shadow: 0 4px 24px rgba(0,0,0,0.10);
  --mg-dir-bg:      #f8fafc;
  --mg-radius:      12px;
  --mg-radius-sm:   8px;
  --mg-radius-xs:   4px;
  --mg-font-display: 'Inter', sans-serif;
  --mg-font-body:    'Inter', sans-serif;
  --mg-ticker-h:    36px;
  --mg-header-h:    72px;
  --mg-transition:  0.2s ease;
}

/* =============================================
   GOOGLE FONTS IMPORT
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--mg-font-body);
  background: #f8fafc;
  color: #1a2535;
  margin: 0;
  padding: 0;
}

a { color: var(--mg-orange); text-decoration: none; transition: color var(--mg-transition); }
a:hover { color: var(--mg-orange-2); }

img { max-width: 100%; height: auto; }

/* =============================================
   TICKER DE COMMODITIES
   ============================================= */
#mg-ticker {
  background: var(--mg-dark);
  color: var(--mg-text);
  height: var(--mg-ticker-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 1000;
  border-bottom: 1px solid var(--mg-border-light);
}

#mg-ticker .ticker-live-badge {
  background: var(--mg-orange);
  color: #fff;
  font-family: var(--mg-font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 3px;
  white-space: nowrap;
  margin: 0 16px 0 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

#mg-ticker .ticker-live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

#mg-ticker .ticker-track {
  display: flex;
  gap: 0;
  animation: tickerScroll 60s linear infinite;
  white-space: nowrap;
}

#mg-ticker .ticker-track:hover { animation-play-state: paused; }

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

#mg-ticker .ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 24px;
  font-size: 12px;
  font-family: var(--mg-font-display);
  border-right: 1px solid var(--mg-border);
}

#mg-ticker .ticker-symbol {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--mg-text-muted);
}

#mg-ticker .ticker-name {
  font-weight: 600;
  color: var(--mg-text);
}

#mg-ticker .ticker-price {
  font-weight: 700;
  color: var(--mg-text);
}

#mg-ticker .ticker-unit {
  font-size: 10px;
  color: var(--mg-text-dim);
}

#mg-ticker .ticker-change.up   { color: #3fb950; font-weight: 600; }
#mg-ticker .ticker-change.down { color: #f85149; font-weight: 600; }

/* Skeleton mientras carga */
#mg-ticker .ticker-skeleton .ticker-price,
#mg-ticker .ticker-skeleton .ticker-change {
  opacity: 0.3;
  animation: skeletonPulse 1.2s ease-in-out infinite;
}

@keyframes skeletonPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.7; }
}

/* Flash verde/rojo cuando cambia precio */
#mg-ticker .ticker-item.price-up   { animation: flashUp   0.6s ease; }
#mg-ticker .ticker-item.price-down { animation: flashDown 0.6s ease; }

@keyframes flashUp {
  0%   { background: rgba(63, 185, 80, 0.25); }
  100% { background: transparent; }
}

@keyframes flashDown {
  0%   { background: rgba(248, 81, 73, 0.25); }
  100% { background: transparent; }
}

/* =============================================
   HEADER / NAVBAR
   ============================================= */
.site-header,
header.elementor-section {
  background: var(--mg-white) !important;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 999;
  height: var(--mg-header-h);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.elementor-nav-menu a {
  font-family: var(--mg-font-display) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #374151 !important;
  letter-spacing: 0.01em;
  transition: color var(--mg-transition);
}

.elementor-nav-menu a:hover { color: var(--mg-orange) !important; }

/* Botón Directorio en header */
.mg-btn-directorio,
.mg-btn-directorio a {
  background: var(--mg-orange) !important;
  color: #fff !important;
  font-family: var(--mg-font-display) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: background var(--mg-transition), transform var(--mg-transition);
}

.mg-btn-directorio:hover,
.mg-btn-directorio a:hover {
  background: var(--mg-orange-2) !important;
  transform: translateY(-1px);
}

/* =============================================
   HERO — DIRECTORIO PAGE
   ============================================= */
.mg-directory-hero {
  background: linear-gradient(135deg, #1b2b3e 0%, #1e3045 50%, #243650 100%);
  padding: 60px 0 70px;
  position: relative;
  overflow: hidden;
}

.mg-directory-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.mg-directory-hero .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.mg-directory-hero .hero-left {}

.mg-directory-hero .hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mg-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mg-orange);
  margin-bottom: 16px;
}

.mg-directory-hero .hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--mg-orange);
}

.mg-directory-hero h1 {
  font-family: var(--mg-font-display);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 800;
  color: var(--mg-white);
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.mg-directory-hero .hero-count {
  font-family: var(--mg-font-display);
  font-size: 15px;
  color: var(--mg-text-muted);
  font-weight: 400;
}

.mg-directory-hero .hero-search {
  flex: 0 0 460px;
}

.mg-directory-hero .hero-search input {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 16px 24px 16px 52px;
  color: var(--mg-white);
  font-family: var(--mg-font-body);
  font-size: 15px;
  outline: none;
  transition: border-color var(--mg-transition), background var(--mg-transition);
  backdrop-filter: blur(10px);
}

.mg-directory-hero .hero-search input::placeholder { color: rgba(255,255,255,0.4); }
.mg-directory-hero .hero-search input:focus {
  border-color: var(--mg-orange);
  background: rgba(255,255,255,0.12);
}

.mg-directory-hero .hero-search .search-wrap {
  position: relative;
}

.mg-directory-hero .hero-search .search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.4);
  pointer-events: none;
}

/* =============================================
   DIRECTORIO — LAYOUT
   ============================================= */
.mg-directory-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

/* =============================================
   SIDEBAR — FILTROS
   ============================================= */
.mg-filters-sidebar {
  background: var(--mg-white);
  border: 1px solid #e5e7eb;
  border-radius: var(--mg-radius);
  padding: 24px;
  position: sticky;
  top: calc(var(--mg-ticker-h) + var(--mg-header-h) + 20px);
}

.mg-filters-sidebar .filter-label {
  font-family: var(--mg-font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mg-text-muted);
  margin-bottom: 12px;
}

.mg-filters-sidebar .filter-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: var(--mg-radius-sm);
  font-family: var(--mg-font-body);
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--mg-transition), color var(--mg-transition);
  margin-bottom: 2px;
}

.mg-filters-sidebar .filter-item:hover {
  background: #f3f4f6;
  color: var(--mg-orange);
}

.mg-filters-sidebar .filter-item.active {
  background: var(--mg-orange);
  color: var(--mg-white);
  font-weight: 600;
}

/* =============================================
   VENDOR CARDS GRID
   ============================================= */
.mg-stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* =============================================
   VENDOR CARD — DOKAN STORE LISTING
   ============================================= */
.mg-store-card,
.dokan-store-listing .dokan-store-wrap {
  background: var(--mg-white);
  border: 1px solid #e5e7eb;
  border-radius: var(--mg-radius);
  overflow: hidden;
  box-shadow: var(--mg-card-shadow);
  transition: transform var(--mg-transition), box-shadow var(--mg-transition), border-color var(--mg-transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.mg-store-card:hover,
.dokan-store-listing .dokan-store-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  border-color: var(--mg-orange);
}

/* Cover Image */
.mg-store-card .card-cover {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2535, #213047);
}

.mg-store-card .card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mg-store-card:hover .card-cover img { transform: scale(1.04); }

/* Logo/Avatar */
.mg-store-card .card-avatar {
  position: absolute;
  bottom: -20px;
  left: 20px;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 3px solid var(--mg-white);
  background: var(--mg-white);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 2;
}

.mg-store-card .card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badges */
.mg-store-card .card-badges {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.mg-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 50px;
  font-family: var(--mg-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mg-badge-verified {
  background: rgba(255,255,255,0.95);
  color: #374151;
  border: 1px solid rgba(255,255,255,0.5);
}

.mg-badge-verified::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--mg-orange);
  border-radius: 50%;
  flex-shrink: 0;
}

.mg-badge-featured {
  background: var(--mg-orange);
  color: var(--mg-white);
}

/* Card Body */
.mg-store-card .card-body {
  padding: 32px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mg-store-card .card-category {
  font-family: var(--mg-font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mg-orange);
  margin-bottom: 6px;
}

.mg-store-card .card-name {
  font-family: var(--mg-font-display);
  font-size: 18px;
  font-weight: 700;
  color: #0f1923;
  margin: 0 0 8px;
  line-height: 1.2;
}

.mg-store-card .card-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Footer */
.mg-store-card .card-footer {
  padding: 12px 20px 16px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.mg-store-card .card-country {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
}

.mg-store-card .card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #0f1923;
}

.mg-store-card .card-rating .stars {
  color: #fbbf24;
  font-size: 11px;
  letter-spacing: 1px;
}

/* View Profile Link */
.mg-store-card .card-link {
  display: block;
  text-align: center;
  margin: 0 20px 16px;
  padding: 9px;
  border: 1.5px solid var(--mg-orange);
  border-radius: var(--mg-radius-sm);
  color: var(--mg-orange);
  font-family: var(--mg-font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background var(--mg-transition), color var(--mg-transition);
}

.mg-store-card .card-link:hover {
  background: var(--mg-orange);
  color: var(--mg-white);
}

/* =============================================
   BLOG CARDS
   ============================================= */
.mg-blog-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}

.mg-post-card {
  background: var(--mg-white);
  border: 1px solid #e5e7eb;
  border-radius: var(--mg-radius);
  overflow: hidden;
  box-shadow: var(--mg-card-shadow);
  transition: transform var(--mg-transition), box-shadow var(--mg-transition);
}

.mg-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.mg-post-card .post-thumb {
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2535, #213047);
}

.mg-post-card.featured .post-thumb { height: 280px; }

.mg-post-card .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mg-post-card:hover .post-thumb img { transform: scale(1.04); }

.mg-post-card .post-body { padding: 20px; }

.mg-post-card .post-cat {
  font-family: var(--mg-font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mg-orange);
  margin-bottom: 8px;
}

.mg-post-card .post-title {
  font-family: var(--mg-font-display);
  font-size: 16px;
  font-weight: 700;
  color: #0f1923;
  line-height: 1.3;
  margin: 0 0 8px;
}

.mg-post-card.featured .post-title { font-size: 22px; }

.mg-post-card .post-excerpt {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

.mg-post-card .post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: #9ca3af;
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.mg-section-eyebrow {
  font-family: var(--mg-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mg-text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mg-section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--mg-orange);
}

.mg-section-title {
  font-family: var(--mg-font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: #0f1923;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.mg-section-subtitle {
  font-size: 16px;
  color: #6b7280;
  font-weight: 400;
}

/* =============================================
   BUTTONS
   ============================================= */
.mg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--mg-radius-sm);
  font-family: var(--mg-font-display);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--mg-transition);
  border: none;
  text-decoration: none;
}

.mg-btn-primary {
  background: var(--mg-orange);
  color: var(--mg-white);
}

.mg-btn-primary:hover {
  background: var(--mg-orange-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.35);
  color: var(--mg-white);
}

.mg-btn-outline {
  background: transparent;
  color: var(--mg-orange);
  border: 1.5px solid var(--mg-orange);
}

.mg-btn-outline:hover {
  background: var(--mg-orange);
  color: var(--mg-white);
}

.mg-btn-outline-white {
  background: transparent;
  color: var(--mg-white);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.mg-btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--mg-dark) !important;
  color: var(--mg-text) !important;
  border-top: 1px solid var(--mg-border-light);
}

.site-footer a { color: var(--mg-text-muted); }
.site-footer a:hover { color: var(--mg-orange); }

.mg-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 32px 40px;
}

.mg-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.mg-footer-col-title {
  font-family: var(--mg-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mg-text-muted);
  margin-bottom: 16px;
}

.mg-footer-links { list-style: none; padding: 0; margin: 0; }

.mg-footer-links li { margin-bottom: 8px; }

.mg-footer-links a {
  font-size: 14px;
  color: var(--mg-text-muted);
  transition: color var(--mg-transition);
}

.mg-footer-links a:hover { color: var(--mg-text); }

.mg-footer-bottom {
  border-top: 1px solid var(--mg-border-light);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--mg-text-dim);
}

/* =============================================
   NEWSLETTER STRIP
   ============================================= */
.mg-newsletter {
  background: var(--mg-dark-2);
  padding: 40px 32px;
  border-top: 1px solid var(--mg-border-light);
  border-bottom: 1px solid var(--mg-border-light);
}

.mg-newsletter .inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.mg-newsletter h3 {
  font-family: var(--mg-font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--mg-white);
  margin-bottom: 8px;
}

.mg-newsletter p {
  font-size: 14px;
  color: var(--mg-text-muted);
  margin-bottom: 20px;
}

.mg-newsletter .nl-form {
  display: flex;
  gap: 8px;
}

.mg-newsletter .nl-form input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--mg-border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--mg-white);
  font-size: 14px;
  font-family: var(--mg-font-body);
  outline: none;
  transition: border-color var(--mg-transition);
}

.mg-newsletter .nl-form input:focus { border-color: var(--mg-orange); }
.mg-newsletter .nl-form input::placeholder { color: var(--mg-text-dim); }

.mg-newsletter .nl-form button {
  background: var(--mg-orange);
  color: var(--mg-white);
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-family: var(--mg-font-display);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--mg-transition);
}

.mg-newsletter .nl-form button:hover { background: var(--mg-orange-2); }

/* =============================================
   DOKAN OVERRIDES — Store Listing Page
   ============================================= */
.dokan-store-listing-filter-wrap { display: none; } /* usamos el nuestro */

.dokan-store-listing .dokan-store-wrap {
  border-radius: var(--mg-radius) !important;
  border: 1px solid #e5e7eb !important;
  overflow: hidden !important;
}

.dokan-store-listing .store-content-wrap { padding: 32px 20px 16px !important; }

.dokan-store-listing .store-name a {
  font-family: var(--mg-font-display) !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  color: #0f1923 !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .mg-directory-wrap {
    grid-template-columns: 1fr;
  }

  .mg-filters-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
  }

  .mg-filters-sidebar .filter-label { width: 100%; }

  .mg-blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mg-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mg-directory-hero .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .mg-directory-hero .hero-search {
    flex: 0 0 100%;
    width: 100%;
  }

  .mg-blog-grid {
    grid-template-columns: 1fr;
  }

  .mg-stores-grid {
    grid-template-columns: 1fr;
  }

  .mg-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .mg-newsletter .nl-form {
    flex-direction: column;
  }

  .mg-directory-wrap {
    padding: 24px 16px 60px;
  }
}
