/* ============================================================
   AEROSUPPLY — native.css

   Scope: the handful of Magento-generated pages that still run on this sheet.
   Everything that used to be here for cart, checkout, the customer account and
   the order pages has moved to Magento's own stylesheets — those handles load
   css/mage-native.css instead (see Magento_* / layout/*.xml, generated by
   work/tools/gen_native_layouts.py). What is left is only the bits that the
   remaining pages genuinely need:

     0. Magento utility classes + validation output + label casing
     1. Catalogue imagery (photo fills its frame instead of letterboxing)
     2. Create-account form rhythm

   Keep it that way: this file is loaded site-wide, so every rule added here
   is a rule that can leak into pages styled by aerosupply.css.
   ============================================================ */

/* ------------------------------------------------------------
   0. Magento utility classes the pages rely on.

   .no-display is toggled by Knockout (compare counter, reorder
   block); .table-caption carries the totals table's screen-reader
   caption, which was rendering as a stray "共" above the amounts.
   ------------------------------------------------------------ */
.table-caption{
  position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;
  overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;
}
.no-display{display:none!important}

/* Validation output — Magento appends these nodes itself. */
.field .mage-error,
.field .note-error,
div.mage-error[generated]{
  display:block;margin:7px 0 0;font-size:12.5px;line-height:1.45;color:#B30000;
}
.field._error .control input,
.field._error .control select,
.field._error .control textarea{border-color:#B30000}

/* Field labels on native pages: sentence case. The shared .label rule
   is an uppercase micro-label, which only loosens CJK glyphs.
   Scoped to `.account` because that is where it still has a consumer - the
   register form (Magento gives it `form create account`). Verified against
   every page that still loads this file: 6 matches on /customer/account/create,
   zero everywhere else. */
.account .field:not(.choice) > .label,
.account .field:not(.choice) > label{
  display:block;font-size:12.5px;font-weight:500;letter-spacing:.02em;
  text-transform:none;color:var(--muted);line-height:1.2;margin:0 0 8px;
}
.account .field .control input,
.account .field .control select,
.account .field .control textarea{height:46px}

/* --- 1. Product imagery -----------------------------------------------
   The catalogue shots are white-background cut-outs with generous margins.
   `object-fit:contain` inside a square box therefore produces a vertical
   band of pure white on either side of the product — technically correct,
   visually "an empty strip next to the photo". `cover` fills the box and
   only ever crops the white margin around the product. */
:is(.catalog-category-view,.catalogsearch-result-index,.catalogsearch-advanced-result) .pl-media img{
  object-fit:cover;
}
/* Category tiles keep their padded frame (that is the design), but the photo
   has to fill the frame. It also used to overflow the frame by ~24px, so the
   top and bottom of every tile image were being clipped by `overflow:hidden`. */
.tile-media{display:grid;place-items:center;align-content:center}
.tile-media img{
  width:100%;height:100%;
  max-width:100%;max-height:100%;
  object-fit:cover;
}

/* ------------------------------------------------------------
   2. Create-account form rhythm.
   Verbatim from the old account section. These four rules are the only part
   of that section that still has a consumer: Magento's own register markup
   puts `create account` on the form, so `.account …` reaches it. Restored
   with the original selectors and specificity - re-scoping them to a deeper
   chain raised the specificity and started beating the theme's `.reg-sect`
   rules, which made the form 122px taller.
   ------------------------------------------------------------ */
.account .fieldset{
  border:0;border-top:1px solid var(--line);margin:0 0 26px;padding:24px 0 0;min-width:0;
}
.account .fieldset > .legend{
  display:block;float:none;width:auto;padding:0;margin:0 0 18px;
  font-size:15px;font-weight:600;letter-spacing:-.005em;color:var(--ink);
}
.account .fieldset > .field{margin:0 0 16px}
.account .field.choice{margin:0 0 14px}
