/*
 * Mountain Greenery 420 — Astra Configurator CSS
 * Matches the mg420_full_site_mockup_v2.html design system.
 * Version: 1.0.0
 *
 * Table of Contents:
 *  1. Astra Layout Overrides (full-width)
 *  2. Announcement Bar
 *  3. Header
 *  4. Navigation (Desktop)
 *  5. Navigation (Mobile)
 *  6. Astra Header Suppression
 *  7. Page-Level Body Styles
 *  8. Category Grid
 *  9. Product Cards
 * 10. Buttons
 * 11. Footer
 * 12. Responsive
 */

/* ══════════════════════════════════════════════════════
   1. ASTRA LAYOUT OVERRIDES — FULL WIDTH
══════════════════════════════════════════════════════ */

/* Override Astra's boxed container on custom MG420 pages */
body.home .ast-container,
body.home .site-content > .ast-container,
body.page-template-template-home .ast-container,
body.page-template-template-deals .ast-container,
body.page-template-template-cloud9 .ast-container,
body.page-template-template-contact .ast-container,
body.woocommerce-shop .ast-container,
body.post-type-archive-product .ast-container,
body.tax-product_cat .ast-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Prevent horizontal scroll globally */
html,
body {
  overflow-x: hidden;
  background-color: var(--mg420-bg, #0E1630);
}

/* Remove Astra boxed wrapper */
body.home .site,
body.page-template-template-home .site {
  background: var(--mg420-bg, #0E1630);
}

/* Full-width content area */
body.home .content-area,
body.home .site-main,
body.page-template-template-home .content-area,
body.page-template-template-deals .content-area,
body.page-template-template-cloud9 .content-area,
body.page-template-template-contact .content-area {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* No sidebar on custom pages */
body.home .widget-area,
body.page-template-template-home .widget-area,
body.page-template-template-deals .widget-area,
body.page-template-template-cloud9 .widget-area {
  display: none !important;
}

/* Remove Astra top margin that creates gap above our header */
body.mg420-custom-header .ast-header-break-point .ast-mobile-header-wrap,
.mg420-header + .site-header {
  display: none !important;
}

/* ══════════════════════════════════════════════════════
   2. ANNOUNCEMENT BAR
══════════════════════════════════════════════════════ */

.mg420-promo-bar {
  background: linear-gradient(90deg, #46CFCB, #B39BEA, #46CFCB);
  color: #0E1630;
  text-align: center;
  padding: 9px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  font-family: var(--mg420-font-body, 'DM Sans', sans-serif);
  position: relative;
  overflow: hidden;
  z-index: 1000;
  width: 100%;
}

.mg420-promo-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: mg420-shimmer 3s infinite;
  pointer-events: none;
}

@keyframes mg420-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.mg420-promo-bar__text {
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════
   3. HEADER
══════════════════════════════════════════════════════ */

.mg420-header {
  background: rgba(14, 22, 48, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(70, 207, 203, 0.30);
  position: sticky;
  top: 40px; /* below announcement bar */
  z-index: 999;
  width: 100%;
}

.mg420-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo / Brand */
.mg420-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.mg420-hdr-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(70, 207, 203, 0.08);
  border: 1.5px solid rgba(70, 207, 203, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mg420-hdr-mark img {
  width: 44px;
  height: 44px;
  object-fit: cover;
}

.mg420-hdr-mark--text {
  font-size: 22px;
  line-height: 1;
}

.mg420-hdr-brand {
  color: #F5F8FC;
  font-family: var(--mg420-font-display, 'Cormorant Garamond', serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.mg420-hdr-sub {
  font-size: 9px;
  color: #46CFCB;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--mg420-font-mono, 'Space Mono', monospace);
}

/* Header right icons area */
.mg420-header-right {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.mg420-hico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(70, 207, 203, 0.07);
  border: 1px solid rgba(70, 207, 203, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.15s;
  text-decoration: none;
}

.mg420-hico svg {
  width: 17px;
  height: 17px;
  stroke: #C9D5E8;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.15s;
}

.mg420-hico:hover {
  background: rgba(70, 207, 203, 0.15);
  border-color: #46CFCB;
}

.mg420-hico:hover svg {
  stroke: #46CFCB;
}

.mg420-cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 16px;
  height: 16px;
  background: #B39BEA;
  border-radius: 50%;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  border: 2px solid #0E1630;
}

.mg420-c9chip {
  background: linear-gradient(135deg, #46CFCB, #B39BEA);
  color: #0E1630;
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  letter-spacing: 0.04em;
  font-family: var(--mg420-font-body, 'DM Sans', sans-serif);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.15s;
}

.mg420-c9chip:hover {
  opacity: 0.9;
  color: #0E1630;
}

/* ══════════════════════════════════════════════════════
   4. NAVIGATION — DESKTOP
══════════════════════════════════════════════════════ */

.mg420-header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.mg420-header-nav .mg420-nav-list,
.mg420-header-nav .mg420-fallback-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Nav items */
.mg420-header-nav .mg420-nav-list li,
.mg420-header-nav .mg420-fallback-nav li {
  position: relative;
  margin: 0;
}

.mg420-header-nav .mg420-nav-list a,
.mg420-header-nav .mg420-fallback-nav a {
  color: #C9D5E8;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  display: block;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: var(--mg420-font-body, 'DM Sans', sans-serif);
}

.mg420-header-nav .mg420-nav-list a:hover,
.mg420-header-nav .mg420-fallback-nav a:hover,
.mg420-header-nav .mg420-nav-list .current-menu-item > a,
.mg420-header-nav .mg420-nav-list .current_page_item > a {
  color: #46CFCB;
  background: rgba(70, 207, 203, 0.08);
}

/* Dropdown support */
.mg420-header-nav .mg420-nav-list .menu-item-has-children > a::after {
  content: ' ▾';
  font-size: 8px;
  opacity: 0.6;
}

.mg420-header-nav .mg420-nav-list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: rgba(14, 22, 48, 0.98);
  border: 1px solid rgba(70, 207, 203, 0.30);
  border-radius: 8px;
  padding: 8px 0;
  z-index: 1000;
  list-style: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  margin: 4px 0 0;
}

.mg420-header-nav .mg420-nav-list .menu-item-has-children:hover .sub-menu,
.mg420-header-nav .mg420-nav-list .menu-item-has-children:focus-within .sub-menu {
  display: block;
}

.mg420-header-nav .mg420-nav-list .sub-menu a {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 12px;
  border-radius: 0;
  padding: 8px 16px;
}

/* ══════════════════════════════════════════════════════
   5. NAVIGATION — MOBILE
══════════════════════════════════════════════════════ */

.mg420-hbg-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(70, 207, 203, 0.07);
  border: 1px solid rgba(70, 207, 203, 0.30);
  display: none; /* hidden on desktop, shown via JS/media query */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.mg420-hbg-btn svg {
  width: 18px;
  height: 18px;
  stroke: #F5F8FC;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.mg420-hbg-btn:hover {
  background: rgba(70, 207, 203, 0.15);
}

.mg420-mobile-menu {
  background: #13213D;
  border-top: 1px solid rgba(70, 207, 203, 0.30);
}

.mg420-mobile-menu[hidden] {
  display: none;
}

.mg420-mobile-menu .mg420-mobile-nav-list,
.mg420-mobile-menu .mg420-fallback-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mg420-mobile-menu .mg420-mobile-nav-list li,
.mg420-mobile-menu .mg420-fallback-nav li {
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mg420-mobile-menu .mg420-mobile-nav-list a,
.mg420-mobile-menu .mg420-fallback-nav a {
  display: block;
  padding: 15px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #C9D5E8;
  text-decoration: none;
  transition: all 0.15s;
  font-family: var(--mg420-font-body, 'DM Sans', sans-serif);
}

.mg420-mobile-menu .mg420-mobile-nav-list a:hover,
.mg420-mobile-menu .mg420-mobile-nav-list .current-menu-item > a,
.mg420-mobile-menu .mg420-fallback-nav a:hover {
  color: #46CFCB;
  background: rgba(70, 207, 203, 0.06);
}

.mg420-mobile-menu .sub-menu {
  padding-left: 20px;
  background: rgba(14, 22, 48, 0.6);
  list-style: none;
}

.mg420-mobile-menu .sub-menu a {
  font-size: 12px;
  padding: 10px 20px;
}

/* ══════════════════════════════════════════════════════
   6. ASTRA DEFAULT HEADER SUPPRESSION
   (when mg420-header is active, hide Astra's plain header)
══════════════════════════════════════════════════════ */

body:has(.mg420-header) .site-header:not(.mg420-header),
body:has(.mg420-header) #masthead:not(.mg420-header) {
  display: none !important;
}

/* Fallback for browsers without :has() */
.mg420-header ~ .site-header,
.mg420-header ~ #masthead {
  display: none !important;
}

/* Adjust sticky top when announcement bar is showing */
body:has(.mg420-promo-bar) .mg420-header {
  top: 40px;
}

body:not(:has(.mg420-promo-bar)) .mg420-header {
  top: 0;
}

/* ══════════════════════════════════════════════════════
   7. PAGE-LEVEL BODY & SECTION STYLES
══════════════════════════════════════════════════════ */

body {
  background-color: #0E1630;
  color: #F5F8FC;
  font-family: var(--mg420-font-body, 'DM Sans', sans-serif);
}

/* Scoped to MG420 pages only */
body.home,
body.page-template-template-home,
body.page-template-template-deals,
body.page-template-template-cloud9,
body.page-template-template-contact {
  background: #0E1630;
}

.mg420-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.mg420-section {
  padding: 72px 24px;
}

/* ══════════════════════════════════════════════════════
   8. CATEGORY GRID
══════════════════════════════════════════════════════ */

.mg420-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.mg420-cat-tile {
  border-radius: 12px;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(70, 207, 203, 0.30);
  text-decoration: none;
  background: #13213D;
  transition: transform 0.2s, border-color 0.2s;
}

.mg420-cat-tile:hover {
  transform: translateY(-4px);
  border-color: #46CFCB;
}

.mg420-cat-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.mg420-cat-emoji {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 36px;
  filter: drop-shadow(0 0 12px rgba(70, 207, 203, 0.4));
}

.mg420-cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 22, 48, 0.92) 0%, rgba(14, 22, 48, 0.3) 50%, transparent 100%);
}

.mg420-cat-info {
  position: relative;
  z-index: 1;
  text-align: center;
}

.mg420-cat-nm {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F5F8FC;
  font-family: var(--mg420-font-body, 'DM Sans', sans-serif);
}

.mg420-cat-cnt {
  font-size: 9px;
  color: #46CFCB;
  margin-top: 2px;
  font-family: var(--mg420-font-mono, 'Space Mono', monospace);
}

/* ══════════════════════════════════════════════════════
   9. PRODUCT CARDS
══════════════════════════════════════════════════════ */

.mg420-prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mg420-pc {
  background: #13213D;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(245, 248, 252, 0.16);
  cursor: pointer;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
  display: flex;
  flex-direction: column;
}

.mg420-pc:hover {
  transform: translateY(-5px);
  border-color: rgba(70, 207, 203, 0.30);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(70, 207, 203, 0.15);
}

.mg420-pc-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mg420-pc-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
  background: linear-gradient(135deg, rgba(14, 22, 48, 0.9), rgba(36, 76, 115, 0.4));
  overflow: hidden;
}

.mg420-pc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mg420-pc-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(70, 207, 203, 0.06), transparent 70%);
  pointer-events: none;
}

.mg420-pc-emoji {
  font-size: 48px;
}

.mg420-sbadge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #B39BEA;
  color: #0E1630;
  font-size: 8px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--mg420-font-mono, 'Space Mono', monospace);
  z-index: 1;
}

.mg420-sbadge--new {
  background: #46CFCB;
}

.mg420-pc-body {
  padding: 12px 14px 0;
  flex: 1;
}

.mg420-pc-cat {
  font-size: 9px;
  color: #46CFCB;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--mg420-font-mono, 'Space Mono', monospace);
}

.mg420-pc-nm {
  font-size: 14px;
  font-weight: 600;
  color: #F5F8FC;
  margin-top: 3px;
  line-height: 1.3;
  font-family: var(--mg420-font-display, 'Cormorant Garamond', serif);
}

.mg420-pc-pr {
  font-size: 16px;
  font-weight: 700;
  color: #9CE8D0;
  margin-top: 4px;
}

.mg420-pc-pr s {
  font-size: 12px;
  color: #C9D5E8;
  font-weight: 400;
  margin-right: 6px;
}

.mg420-pc-st {
  font-size: 10px;
  color: #FF8A6B;
  padding-top: 2px;
}

.mg420-pc-atc {
  width: 100%;
  padding: 10px;
  background: rgba(70, 207, 203, 0.1);
  color: #46CFCB;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  font-family: var(--mg420-font-body, 'DM Sans', sans-serif);
  transition: background 0.2s, color 0.2s;
  border-top: 1px solid rgba(70, 207, 203, 0.30);
  margin-top: 12px;
}

.mg420-pc-atc:hover {
  background: #46CFCB;
  color: #0E1630;
}

/* ══════════════════════════════════════════════════════
   10. BUTTONS
══════════════════════════════════════════════════════ */

.mg420-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: all 0.22s;
  white-space: nowrap;
  font-family: var(--mg420-font-body, 'DM Sans', sans-serif);
}

.mg420-btn--teal {
  background: #46CFCB;
  color: #0E1630;
  border-color: #46CFCB;
}

.mg420-btn--teal:hover {
  background: #9CE8D0;
  border-color: #9CE8D0;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(70, 207, 203, 0.35);
  color: #0E1630;
}

.mg420-btn--outline {
  background: transparent;
  color: #46CFCB;
  border-color: rgba(70, 207, 203, 0.30);
}

.mg420-btn--outline:hover {
  border-color: #46CFCB;
  background: rgba(70, 207, 203, 0.1);
  transform: translateY(-1px);
  color: #46CFCB;
}

.mg420-notice {
  background: rgba(70, 207, 203, 0.08);
  border: 1px solid rgba(70, 207, 203, 0.30);
  border-radius: 8px;
  padding: 16px 20px;
  color: #C9D5E8;
  font-size: 13px;
  font-family: var(--mg420-font-body, 'DM Sans', sans-serif);
}

/* ══════════════════════════════════════════════════════
   11. FOOTER
══════════════════════════════════════════════════════ */

.mg420-footer {
  background: linear-gradient(to bottom, #13213D, rgba(10, 15, 32, 1));
  padding: 64px 24px 32px;
  border-top: 1px solid rgba(70, 207, 203, 0.30);
  color: #F5F8FC;
  width: 100%;
}

.mg420-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(245, 248, 252, 0.16);
}

/* Brand column */
.mg420-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mg420-footer-logo-wrap {
  display: inline-block;
  margin-bottom: 6px;
}

.mg420-footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(70, 207, 203, 0.30);
}

.mg420-footer-logo-placeholder {
  font-size: 32px;
  margin-bottom: 6px;
}

.mg420-footer-brand-name {
  font-family: var(--mg420-font-display, 'Cormorant Garamond', serif);
  font-size: 18px;
  font-weight: 600;
  color: #F5F8FC;
}

.mg420-footer-brand-sub {
  font-size: 11px;
  color: #46CFCB;
  letter-spacing: 0.08em;
  font-family: var(--mg420-font-mono, 'Space Mono', monospace);
}

.mg420-footer-desc {
  font-size: 12px;
  color: #C9D5E8;
  line-height: 1.7;
  margin-top: 8px;
  max-width: 260px;
}

/* Footer columns */
.mg420-footer-col {
  min-width: 0;
}

.mg420-footer-h {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #46CFCB;
  margin-bottom: 14px;
  font-family: var(--mg420-font-mono, 'Space Mono', monospace);
}

.mg420-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mg420-footer-links li {
  font-size: 12px;
  color: #C9D5E8;
  line-height: 1.5;
  margin: 0;
}

.mg420-footer-links a {
  font-size: 12px;
  color: #C9D5E8;
  text-decoration: none;
  transition: color 0.15s;
}

.mg420-footer-links a:hover {
  color: #46CFCB;
}

/* Footer bottom bar */
.mg420-footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 28px;
}

.mg420-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.mg420-footer-copy {
  font-size: 11px;
  color: rgba(245, 248, 252, 0.3);
}

.mg420-footer-age {
  font-size: 10px;
  color: rgba(245, 248, 252, 0.3);
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.mg420-footer-disclaimer {
  font-size: 10px;
  color: rgba(245, 248, 252, 0.3);
  line-height: 1.6;
  margin: 0;
}

/* ══════════════════════════════════════════════════════
   12. RESPONSIVE
══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .mg420-prod-grid { grid-template-columns: repeat(3, 1fr); }
  .mg420-cat-grid  { grid-template-columns: repeat(4, 1fr); }
  .mg420-footer-inner { grid-template-columns: 1fr 1fr; }

  .mg420-header-nav .mg420-nav-list a,
  .mg420-header-nav .mg420-fallback-nav a {
    font-size: 10px;
    padding: 5px 8px;
  }
}

@media (max-width: 768px) {
  /* Show hamburger, hide desktop nav */
  .mg420-hbg-btn      { display: flex; }
  .mg420-header-nav   { display: none; }
  .mg420-c9chip       { display: none; }

  /* Header sticks to top on mobile (no announcement bar offset) */
  .mg420-header { top: 0; }

  /* Promo bar smaller on mobile */
  .mg420-promo-bar { font-size: 10px; padding: 7px 12px; }

  .mg420-cat-grid  { grid-template-columns: repeat(2, 1fr); }
  .mg420-prod-grid { grid-template-columns: repeat(2, 1fr); }

  .mg420-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .mg420-footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .mg420-prod-grid { grid-template-columns: 1fr; }
  .mg420-cat-grid  { grid-template-columns: repeat(2, 1fr); }
  .mg420-header-inner { padding: 10px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
