/*
 * Vertex Mobile Compact: mobile-only overrides for the Vertex Migration theme.
 * Everything is inside the media query and scoped to body.vxmc, so desktop (>768px) is untouched.
 * Breakpoint matches the theme's own hamburger-menu breakpoint.
 * Tune the look from the variables below.
 */
@media (max-width: 768px) {

body.vxmc {
  --vxmc-pad: 16px;            /* side padding for all sections */
  --vxmc-radius: 14px;         /* cards, tiles, images */
  --vxmc-radius-sm: 10px;      /* buttons, small cards */
  --vxmc-gap: 10px;            /* gap between tiles */
  --vxmc-logo-h: 46px;         /* header logo height */
  --vxmc-tile-ratio: 1 / 1.1;  /* category tiles: width / height (1 / 1 = perfect square) */
  --vxmc-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- Typography (optional, via setting) ---------- */
body.vxmc.vxmc-sans { font-family: var(--vxmc-sans); }
body.vxmc.vxmc-sans :is(h1, h2, h3, .eyebrow, nav, .button, button, input[type=submit],
  .research-note, .shipping-strip, .shop-links, .vertex-shipping-banner) {
  font-family: var(--vxmc-sans);
}
body.vxmc.vxmc-sans :is(h1) { font-weight: 700; }
body.vxmc.vxmc-sans :is(h2, h3) { font-weight: 600; }
body.vxmc.vxmc-sans :is(.button, button) { font-weight: 600; }

body.vxmc .section h1,
body.vxmc .page-content h1,
body.vxmc .vertex-bundles-intro h1 { font-size: 21px; line-height: 1.2; letter-spacing: .06em; margin: 0 0 12px; }
body.vxmc .section h2,
body.vxmc .page-content h2 { font-size: 17px; line-height: 1.25; letter-spacing: .05em; margin: 0 0 10px; }

/* ---------- Shipping banner ---------- */
body.vxmc .vertex-shipping-banner {
  gap: 2px 8px !important;
  padding: 7px 12px !important;
  min-height: 0 !important;
  font-size: 9.5px !important;
  letter-spacing: .1em !important;
  line-height: 1.35 !important;
}
body.vxmc .vertex-shipping-banner .vertex-shipping-icon { font-size: 11px !important; }
body.vxmc .vertex-shipping-banner .vertex-shipping-sub {
  flex-basis: 100% !important;
  border: 0 !important;
  padding: 0 !important;
  font-size: 8px !important;
  letter-spacing: .09em !important;
}

/* ---------- Header ---------- */
body.vxmc .site-header {
  min-height: 0 !important;
  padding: 8px 56px 8px 14px !important;
  gap: 8px 12px !important;
  align-items: center;
}
body.vxmc .site-header .brand { flex: 0 0 auto; }
body.vxmc .site-header .brand img {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: var(--vxmc-logo-h) !important;
}
body.vxmc .site-header .shop-links {
  margin-left: auto !important;
  flex-direction: row;
  gap: 14px;
  font-size: 11px;
  letter-spacing: .06em;
}
/* Pin the menu button to the top row so it no longer jumps down when the menu opens */
body.vxmc .site-header .mobile-menu-toggle {
  top: calc((var(--vxmc-logo-h) + 16px - 36px) / 2) !important;
  right: 10px !important;
  transform: none !important;
  font-size: 20px !important;
  line-height: 1 !important;
  width: 38px;
  height: 36px;
  padding: 0 !important;
  border: 1px solid #2e2e2e !important;
  border-radius: var(--vxmc-radius-sm) !important;
}
body.vxmc .site-header #vertex-navigation { margin: 0; border-top: 1px solid #1d1d1d; }
body.vxmc .site-header #vertex-navigation ul { padding: 4px 0 !important; }
body.vxmc .site-header #vertex-navigation a,
body.vxmc .site-header #vertex-navigation li a { padding: 10px 8px !important; font-size: 12.5px; letter-spacing: .08em; }

/* ---------- Research note ---------- */
body.vxmc .research-note {
  padding: 9px 14px;
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: .06em;
}

/* ---------- Global spacing ---------- */
body.vxmc .wrap { padding-left: var(--vxmc-pad); padding-right: var(--vxmc-pad); }
body.vxmc .section { padding-top: 26px; padding-bottom: 26px; }

/* ---------- Category tiles: two square-ish, rounded tiles side by side ---------- */
body.vxmc .category-grid {
  grid-template-columns: 1fr 1fr;
  gap: var(--vxmc-gap);
  padding-top: 14px;
  padding-bottom: 0;
}
body.vxmc .category-grid .category-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  aspect-ratio: var(--vxmc-tile-ratio);
  min-height: 0;
  border-radius: var(--vxmc-radius);
  overflow: hidden;
}
body.vxmc .category-grid .category-photo {
  position: relative;
  padding: 0;
  min-height: 0;
}
body.vxmc .category-grid .category-photo img {
  position: absolute !important;
  top: 8px; left: 8px;
  width: calc(100% - 16px) !important;
  height: calc(100% - 16px) !important;
  max-height: none !important;
  aspect-ratio: auto;
  object-fit: contain;          /* the Pens image keeps its own inline "cover" */
  border-radius: calc(var(--vxmc-radius) - 6px);
}
body.vxmc .category-grid .category-label { padding: 8px 10px 10px; }
body.vxmc .category-grid .category-label small {
  display: block;
  font-size: 7.5px;
  line-height: 1.3;
  letter-spacing: .08em;
}
body.vxmc .category-grid .category-label strong {
  font-size: 18px;
  line-height: 1.1;
  margin: 4px 0;
  letter-spacing: .08em;
}
body.vxmc .category-grid .category-label span { font-size: 10px; line-height: 1.3; }

/* ---------- Bundles panel (beats the inline <style> block in the template) ---------- */
body.vxmc #vertex-bundles-restored {
  width: calc(100% - (var(--vxmc-pad) * 2)) !important;
  margin: var(--vxmc-gap) auto 0 !important;
}
body.vxmc #vertex-bundles-restored .vertex-bundles-card {
  grid-template-columns: 1fr !important;
  border-radius: var(--vxmc-radius) !important;
}
body.vxmc #vertex-bundles-restored .vertex-bundles-card-photo { aspect-ratio: 3 / 1 !important; }
body.vxmc #vertex-bundles-restored .vertex-bundles-card-content {
  min-height: 0 !important;
  padding: 12px 16px 14px !important;
}
body.vxmc #vertex-bundles-restored .vertex-bundles-card-content small {
  font-size: 8.5px !important;
  letter-spacing: .12em !important;
  line-height: 1.3 !important;
}
body.vxmc #vertex-bundles-restored .vertex-bundles-card-content strong {
  font-size: 24px !important;
  line-height: 1.1 !important;
  letter-spacing: .06em !important;
  margin: 4px 0 6px !important;
}
body.vxmc #vertex-bundles-restored .vertex-bundles-card-content span {
  font-size: 12px !important;
  line-height: 1.3 !important;
}
body.vxmc.vxmc-sans #vertex-bundles-restored .vertex-bundles-card-content :is(small, strong, span) {
  font-family: var(--vxmc-sans) !important;
}

/* ---------- Why Vertex / benefits ---------- */
body.vxmc .benefits {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 16px;
}
body.vxmc .benefits article {
  padding: 12px;
  border: 1px solid #262626;
  border-radius: var(--vxmc-radius-sm);
  background: #0a0a0a;
}
body.vxmc .benefits article:last-child:nth-child(odd) { grid-column: 1 / -1; }
body.vxmc .section .benefits h2 { font-size: 13px; letter-spacing: .04em; margin: 0 0 4px; }
body.vxmc .benefits p { font-size: 12px; line-height: 1.45; margin: 0; }

body.vxmc .actions { gap: 8px; flex-wrap: nowrap; }
body.vxmc .actions .button { flex: 1 1 0; min-width: 0; padding: 12px 10px; }

/* ---------- Buttons ---------- */
body.vxmc .button {
  border-radius: var(--vxmc-radius-sm);
  padding: 12px 18px;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: .08em;
}

/* ---------- Quality section ---------- */
body.vxmc .quality { gap: 14px; }
body.vxmc .quality img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--vxmc-radius);
}
body.vxmc .quality p { font-size: 14px; line-height: 1.55; margin: 0 0 14px; }
body.vxmc .quality .button { display: block; }

/* ---------- Shipping strip: 2 x 2 ---------- */
body.vxmc .shipping-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  padding: 14px var(--vxmc-pad);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: .08em;
  text-align: center;
}

/* ---------- Reviews ---------- */
body.vxmc .reviews { gap: 8px; }
body.vxmc .reviews blockquote { padding: 14px; border-radius: var(--vxmc-radius); }
body.vxmc .reviews blockquote div { font-size: 13px; letter-spacing: .15em; line-height: 1; }
body.vxmc .reviews blockquote p { font-size: 13.5px; line-height: 1.5; margin: 8px 0; }
body.vxmc .reviews cite { font-size: 11.5px; }

/* ---------- FAQ ---------- */
body.vxmc .faq details { padding: 12px 0; }
body.vxmc .faq summary { font-size: 14.5px; line-height: 1.4; }
body.vxmc .faq details p { font-size: 13.5px; line-height: 1.55; margin: 8px 0 0; }

/* ---------- Footer ---------- */
body.vxmc .site-footer { padding: 24px var(--vxmc-pad) 26px; font-size: 12px; }
body.vxmc .site-footer > img { width: 84px; }
body.vxmc .site-footer > p { margin: 12px auto; }
body.vxmc .site-footer > a { margin: 6px 8px; }
body.vxmc .social { gap: 16px; margin: 12px; }

/* ---------- Inner pages, forms ---------- */
body.vxmc .page-content { padding: 20px var(--vxmc-pad) 36px; }
body.vxmc .page-content > h1 { margin-bottom: 16px; }
body.vxmc .contact-grid { gap: 22px; }
body.vxmc .contact-grid .eyebrow { margin-top: 18px; }
body.vxmc label { margin: 10px 0; }
body.vxmc input:not([type=checkbox]):not([type=radio]),
body.vxmc textarea,
body.vxmc select { padding: 10px 12px; border-radius: 8px; }

/* ---------- Bundles landing page ---------- */
body.vxmc .vertex-bundles-intro { padding-top: 24px; padding-bottom: 14px; }
body.vxmc .vertex-bundles-intro h1 { margin: 8px 0 10px; }
body.vxmc .vertex-bundles-page { padding-bottom: 28px; }
body.vxmc .vertex-bundles-disclaimer { margin-top: 18px; }

/* ---------- Product grids (shop, categories, best sellers): cosmetic tightening only ---------- */
body.vxmc.woocommerce-page ul.products,
body.vxmc.tax-product_cat ul.products,
body.vxmc.post-type-archive-product ul.products {
  gap: 8px !important;
  margin: 16px 0 28px !important;
}
body.vxmc.vxmc ul.products li.product {
  border-radius: 12px;
  padding-bottom: 12px !important;
}
body.vxmc.vxmc ul.products li.product a img {
  margin-bottom: 8px !important;
  padding: 6px !important;
}
body.vxmc.vxmc ul.products li.product .woocommerce-loop-product__title {
  font-size: 12.5px !important;
  line-height: 1.4 !important;
  min-height: 0 !important;
  margin: 0 0 4px !important;
}
body.vxmc.vxmc ul.products li.product .price { margin: 0 0 10px !important; font-size: 13px !important; }
body.vxmc.vxmc ul.products li.product .button {
  border-radius: var(--vxmc-radius-sm) !important;
  padding: 11px 6px !important;
}

} /* end @media (max-width: 768px) */
