/* ================================================== RESPONSIVE ================================================== */
@media(max-width:1100px){.pm-header-search{display:none}}
@media(max-width:900px){.pm-nav-toggle{display:block;margin-left:auto}.pm-primary-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--pm-border);padding:16px}.pm-primary-nav.is-open{display:block}.pm-site-header{position:relative}.pm-site-header--sticky{position:sticky}.pm-menu{align-items:stretch;flex-direction:column;gap:0}.pm-menu a{display:block;padding:10px}.pm-header-actions{display:none}.pm-brand img{width:var(--pm-mobile-logo-width)}.pm-footer-grid{grid-template-columns:1fr 1fr}.pm-dashboard-layout{grid-template-columns:1fr}.pm-marketplace-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.admin-bar .pm-site-header--sticky{top:46px}.pm-header-inner{min-height:68px}.pm-footer-grid{grid-template-columns:1fr}.pm-marketplace-grid{grid-template-columns:1fr}.pm-page-shell{padding-block:24px}}

/* Application shells */
@media (max-width: 782px){
  .pm-app-shell,.pm-dashboard-shell{padding-top:18px}
  .pm-breadcrumbs{margin-bottom:16px}
  .pm-marketplace-content{padding:18px}
  .pm-dashboard-content{overflow-x:auto}
  .pm-dashboard-content table{min-width:680px}
}

/* ==================================================
   RESPONSIVE FOUNDATION 0.5.13
   Mobile/tablet only. Desktop header intentionally remains
   exactly as defined by header.css and Theme Settings.
   ================================================== */
@media (max-width: 1100px) {
  .pm-container { width:min(calc(100% - 28px),var(--pm-container-width)); }
  .pm-dashboard-shell .pm-dashboard-layout,
  .pm-dashboard-layout { grid-template-columns:1fr !important; }
  .pm-dashboard-content,
  .pm-app-content,
  .pm-marketplace-content { min-width:0; max-width:100%; }
  .pm-dashboard-content table,
  .pm-rfq-table { width:100%; }
  .pm-dashboard-content { overflow-wrap:anywhere; }
}

@media (max-width: 900px) {
  /* Header: only switch to the theme's existing mobile navigation. */
  .pm-header-inner { gap:14px; }
  .pm-brand { min-width:0; }
  .pm-brand img { max-height:54px; }

  /* Application layouts */
  .pm-dashboard-shell,
  .pm-app-shell { padding-top:18px; padding-bottom:36px; }
  .pm-dashboard-shell .pm-manufacturer-dashboard { padding-top:10px; }
  .pm-buyer-dashboard-grid,
  .pm-form-grid,
  .pm-pricing-grid { grid-template-columns:1fr; }
  .pm-product-manager-header { flex-direction:column; align-items:stretch; }
  .pm-product-detail-layout { grid-template-columns:1fr; gap:24px; }

  /* Tables stay inside their page instead of widening the viewport. */
  .pm-rfq-table-wrap,
  .pm-dashboard-content { max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .pm-dashboard-content table { min-width:680px; }
  .pm-rfq-table { min-width:760px; }
}

@media (max-width: 767px) {
  :root {
    --pm-font-size-body:14px;
    --pm-font-size-nav:14px;
    --pm-font-size-button:13px;
    --pm-font-size-label:13px;
    --pm-font-size-input:14px;
    --pm-font-size-small:12px;
    --pm-font-size-badge:12px;
    --pm-font-size-h1:28px;
    --pm-font-size-h2:24px;
    --pm-font-size-h3:20px;
    --pm-font-size-h4:18px;
    --pm-font-size-h5:16px;
    --pm-font-size-h6:14px;
  }
  html { font-size:14px; }
  body { line-height:1.55; }
  .pm-container { width:min(calc(100% - 24px),var(--pm-container-width)); }
  .pm-page-shell { padding-block:22px; }
  .pm-breadcrumbs { margin-bottom:14px; font-size:12px; gap:6px; }
  .pm-app-heading { margin-bottom:18px; }
  .pm-app-heading__title { font-size:28px; }
  .pm-marketplace-content,
  .pm-content-card,
  .pm-buyer-panel,
  .pm-buyer-welcome { padding:18px; }

  .pm-actions,.pm-button-group,.pm-form-actions,.pm-dashboard-actions,.pm-product-actions {
    align-items:stretch;
  }
  .pm-form-actions .pm-btn,
  .pm-form-actions button,
  .pm-product-submit .pm-btn,
  .pm-product-submit button { max-width:100%; }

  input[type=text],input[type=email],input[type=password],input[type=number],input[type=url],input[type=search],input[type=tel],select,textarea {
    padding:10px 12px;
  }
  .pm-manufacturer-product-form fieldset,
  .pm-manufacturer-product-seo,
  .pm-manufacturer-product-admin-feedback,
  .pm-product-pricing { padding:16px; border-radius:14px; }
  .pm-pricing-tier-row { grid-template-columns:1fr; }

  .pm-rfq-card { padding:16px; }
  .pm-rfq-detail-header { gap:14px; }
  .pm-rfq-detail-header h3 { font-size:22px; }
  .pm-rfq-detail-section h4 { padding:12px 14px; font-size:15px; }
  .pm-rfq-info-table>div { padding:12px 14px; }
  .pm-rfq-requirements-card { margin:14px; padding:14px; }
  .pm-rfq-status-panel { padding:14px; gap:14px; }

  .pm-public-products,.pm-public-product-detail { padding:20px 0 36px; }
  .pm-public-product-card__body { padding:16px; }
  .pm-public-product-card h2 { font-size:18px; }
}

@media (max-width: 480px) {
  :root {
    --pm-font-size-body:13px;
    --pm-font-size-button:12px;
    --pm-font-size-label:12px;
    --pm-font-size-input:13px;
    --pm-font-size-small:11px;
    --pm-font-size-badge:11px;
    --pm-font-size-h1:25px;
    --pm-font-size-h2:22px;
    --pm-font-size-h3:19px;
    --pm-font-size-h4:17px;
  }
  html { font-size:13px; }
  .pm-container { width:min(calc(100% - 20px),var(--pm-container-width)); }
  .pm-header-inner { min-height:64px; }
  .pm-brand img { max-height:48px; }
  .pm-marketplace-content,
  .pm-content-card,
  .pm-buyer-panel,
  .pm-buyer-welcome { padding:15px; }
  .pm-btn,button:not(.pm-nav-toggle),input[type="submit"],input[type="button"],input[type="reset"],a.button,.button {
    min-height:38px; padding:8px 14px;
  }
  .pm-dashboard-content th,.pm-dashboard-content td { padding:10px 12px; }
  .pm-rfq-print { min-height:36px; padding:7px 12px; }
}
