:root {
  --ap-navy: #092a46;
  --ap-navy-deep: #061f35;
  --ap-blue: #0675e8;
  --ap-blue-hover: #005fc2;
  --ap-bg: #ffffff;
  --ap-bg-light: #f3f8fc;
  --ap-border: #d7e2eb;
  --ap-text: #0b2b4c;
  --ap-text-muted: #5f7185;
  --ap-success: #1aa43a;
  --ap-danger: #e52435;
  --ap-radius-sm: 4px;
  --ap-radius: 6px;
  --ap-shadow: 0 8px 24px rgba(9, 42, 70, .07);
  --ap-container: 1280px;
  --ap-gutter: 24px;
  --ap-space-1: 8px;
  --ap-space-2: 12px;
  --ap-space-3: 16px;
  --ap-space-4: 24px;
  --ap-space-5: 32px;
  --ap-space-6: 48px;
  --ap-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body.apds-active {
  background: var(--ap-bg);
  color: var(--ap-text);
  font-family: var(--ap-font);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

.apds-active *, .apds-active *::before, .apds-active *::after { box-sizing: border-box; }
.apds-active a { color: var(--ap-blue); text-decoration: none; }
.apds-active a:hover { color: var(--ap-blue-hover); }
.apds-active :focus-visible { outline: 3px solid rgba(6, 117, 232, .35); outline-offset: 2px; }
.apds-container { width: min(100% - (var(--ap-gutter) * 2), var(--ap-container)); margin-inline: auto; }
.apds-active .site-header, .apds-active #site-navigation, .apds-active .site-footer { display: none !important; }
.apds-active #page.site { max-width: var(--ap-container); margin-inline: auto; }

.apds-header { position: relative; z-index: 50; background: #fff; color: var(--ap-text); border-bottom: 1px solid var(--ap-border); }
.apds-utility { min-height: 32px; background: linear-gradient(90deg, var(--ap-navy-deep), #0d416b); color: #fff; font-size: 12px; }
.apds-utility__inner { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.apds-utility p { margin: 0; }
.apds-utility nav { display: flex; align-items: center; gap: 0; }
.apds-utility nav > * { color: #fff; padding: 0 10px; border-right: 1px solid rgba(255,255,255,.24); line-height: 1; }
.apds-utility nav > *:last-child { border-right: 0; padding-right: 0; }

.apds-main-header__inner { min-height: 82px; display: grid; grid-template-columns: 240px minmax(320px, 1fr) auto; align-items: center; gap: 28px; }
.apds-brand { min-width: 0; display: inline-flex; align-items: center; gap: 10px; color: var(--ap-text) !important; }
.apds-brand__mark { width: 46px; height: 46px; fill: none; stroke: var(--ap-blue); stroke-width: 3; stroke-linecap: round; }
.apds-brand__copy { display: flex; flex-direction: column; min-width: 0; }
.apds-brand__name { color: var(--ap-text); font-size: 24px; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; line-height: 1; }
.apds-brand__name strong { color: var(--ap-blue); font-size: 12px; vertical-align: top; letter-spacing: 0; }
.apds-brand__tagline { color: var(--ap-text-muted); font-size: 7px; font-weight: 700; letter-spacing: .04em; margin-top: 5px; white-space: nowrap; }

.apds-search { width: 100%; max-width: 650px; justify-self: center; display: grid; grid-template-columns: minmax(0, 1fr) 54px; height: 46px; }
.apds-search input { width: 100%; min-width: 0; height: 46px; margin: 0; padding: 0 16px; border: 1px solid var(--ap-border); border-right: 0; border-radius: var(--ap-radius) 0 0 var(--ap-radius); background: #f8fafc; color: var(--ap-text); font: inherit; }
.apds-search input::placeholder { color: #78899b; opacity: 1; }
.apds-search button { width: 54px; height: 46px; margin: 0; padding: 0; border: 0; border-radius: 0 var(--ap-radius) var(--ap-radius) 0; background: var(--ap-blue); color: #fff; display: grid; place-items: center; cursor: pointer; }
.apds-search button:hover { background: var(--ap-blue-hover); }
.apds-search svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.apds-actions { display: flex; align-items: center; gap: 22px; }
.apds-action { position: relative; display: inline-flex; align-items: center; gap: 7px; color: var(--ap-text) !important; font-size: 13px; font-weight: 600; white-space: nowrap; }
.apds-action:hover { color: var(--ap-blue) !important; }
.apds-action svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.apds-count { position: absolute; right: -9px; top: -10px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid #fff; border-radius: 999px; background: var(--ap-blue); color: #fff; font-size: 9px; line-height: 1; }
.apds-cart-link .apds-count:not(:empty) { background: var(--ap-danger); }
.apds-mobile-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--ap-border); border-radius: var(--ap-radius); background: #fff; color: var(--ap-text); font-weight: 700; }
.apds-mobile-toggle svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.apds-nav { border-top: 1px solid #edf2f6; background: #fff; }
.apds-nav__inner { min-height: 54px; display: flex; align-items: center; gap: 18px; }
.apds-nav__list { flex: 1; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 0; }
.apds-nav__list li { margin: 0; }
.apds-nav__list a { display: flex; align-items: center; min-height: 42px; padding: 4px 8px; color: var(--ap-text); font-size: 13px; font-weight: 700; white-space: nowrap; }
.apds-nav__list a:hover { color: var(--ap-blue); }
.apds-nav__category a { padding-inline: 14px; border: 1px solid var(--ap-border); border-radius: var(--ap-radius); background: #f8fafc; }

.apds-button, .apds-active button, .apds-active input[type="submit"], .apds-active .button {
  min-height: 44px;
  border-radius: var(--ap-radius);
  font-family: var(--ap-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.apds-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 20px; border: 1px solid transparent; }
.apds-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.apds-button--primary { background: var(--ap-blue); color: #fff !important; }
.apds-button--primary:hover { background: var(--ap-blue-hover); color: #fff !important; }
.apds-nav__quote { flex: 0 0 auto; min-width: 190px; }

.apds-active input[type="text"], .apds-active input[type="email"], .apds-active input[type="tel"], .apds-active input[type="number"], .apds-active input[type="password"], .apds-active input[type="search"], .apds-active select, .apds-active textarea {
  min-height: 44px;
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  background: #fff;
  color: var(--ap-text);
  font: inherit;
}
.apds-active input:focus, .apds-active select:focus, .apds-active textarea:focus { border-color: var(--ap-blue); box-shadow: 0 0 0 3px rgba(6,117,232,.12); outline: 0; }
.apds-active label { color: var(--ap-text); font-weight: 650; }

.ap-card, .ap-product-card, .apds-active .wc-block-components-product-card, .apds-active ul.products li.product {
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  background: #fff;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.ap-card:hover, .ap-product-card:hover, .apds-active ul.products li.product:hover { border-color: #9fc8ec; box-shadow: var(--ap-shadow); transform: translateY(-2px); }
.ap-product-card__image { aspect-ratio: 1 / 1; object-fit: contain; }
.ap-product-card__part-number { color: var(--ap-text); font-weight: 800; }
.ap-product-card__name, .ap-product-card__meta { color: var(--ap-text-muted); }
.ap-status { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 3px 9px; border-radius: 999px; background: #eaf7ed; color: #137e2c; font-size: 12px; font-weight: 700; }
.ap-status--processing, .ap-status--review { background: #e9f3ff; color: #006bd6; }
.ap-status--closed { background: #eef1f4; color: #667687; }
.ap-disclaimer { padding: 16px 18px; border-left: 3px solid var(--ap-blue); border-radius: var(--ap-radius); background: var(--ap-bg-light); color: var(--ap-text-muted); font-size: 14px; }

.apds-footer { margin-top: 56px; background: linear-gradient(115deg, var(--ap-navy-deep), var(--ap-navy)); color: #fff; }
.apds-footer .apds-container { padding-block: 44px 24px; }
.apds-footer__grid { display: grid; grid-template-columns: 1.45fr .8fr .9fr .8fr 1.35fr; gap: 36px; }
.apds-brand--inverse .apds-brand__name, .apds-brand--inverse .apds-brand__tagline { color: #fff; }
.apds-brand--inverse .apds-brand__mark { stroke: #fff; }
.apds-footer__brand > p { max-width: 270px; margin: 20px 0 0; color: #d5e3ef; font-size: 13px; line-height: 1.65; }
.apds-footer h2 { margin: 4px 0 14px; color: #fff; font-size: 15px; line-height: 1.3; font-weight: 800; }
.apds-footer p { color: #d5e3ef; }
.apds-footer__links { list-style: none; margin: 0; padding: 0; }
.apds-footer__links li { margin: 0 0 7px; }
.apds-footer a { color: #e8f3fb; font-size: 13px; }
.apds-footer a:hover { color: #fff; text-decoration: underline; }
.apds-footer__newsletter > p { margin: -6px 0 12px; font-size: 12px; }
.apds-newsletter { display: grid; grid-template-columns: 1fr auto; }
.apds-newsletter input { min-width: 0; height: 42px; padding: 0 12px; border: 0; border-radius: var(--ap-radius) 0 0 var(--ap-radius); background: #fff; color: var(--ap-text); }
.apds-newsletter button { min-height: 42px; padding: 0 16px; border: 0; border-radius: 0 var(--ap-radius) var(--ap-radius) 0; background: var(--ap-blue); color: #fff; }
.apds-newsletter :disabled { opacity: .88; cursor: not-allowed; }
.apds-placeholder-note { display: block; margin-top: 7px; color: #a9bfd0; font-size: 10px; }
.apds-payments { margin-top: 17px; }
.apds-payments > strong { display: block; margin-bottom: 8px; font-size: 12px; }
.apds-payments div { display: flex; flex-wrap: wrap; gap: 6px; }
.apds-payments span { padding: 5px 8px; border-radius: 4px; background: #fff; color: var(--ap-text); font-size: 10px; font-weight: 800; }
.apds-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); }
.apds-footer__bottom nav { display: flex; gap: 0; }
.apds-footer__bottom nav a { padding: 0 14px; border-right: 1px solid rgba(255,255,255,.24); }
.apds-footer__bottom nav a:first-child { padding-left: 0; }
.apds-footer__bottom nav a:last-child { border-right: 0; }
.apds-footer__bottom p { margin: 0; font-size: 12px; }

@media (max-width: 1080px) {
  :root { --ap-gutter: 20px; }
  .apds-main-header__inner { grid-template-columns: 210px minmax(260px, 1fr) auto; gap: 18px; }
  .apds-actions { gap: 12px; }
  .apds-action span:not(.apds-count) { display: none; }
  .apds-nav__list { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .apds-nav__list::-webkit-scrollbar { display: none; }
  .apds-footer__grid { grid-template-columns: 1.3fr repeat(3, 1fr); }
  .apds-footer__newsletter { grid-column: 1 / -1; max-width: 520px; }
}

@media (max-width: 767px) {
  :root { --ap-gutter: 16px; }
  .apds-utility { display: none; }
  .apds-main-header__inner { min-height: 132px; grid-template-columns: 1fr auto auto; grid-template-rows: 64px 52px; gap: 0 10px; }
  .apds-brand { grid-column: 1; grid-row: 1; }
  .apds-brand__mark { width: 38px; height: 38px; }
  .apds-brand__name { font-size: 20px; }
  .apds-actions { grid-column: 2; grid-row: 1; gap: 10px; }
  .apds-action { min-width: 38px; min-height: 44px; justify-content: center; }
  .apds-action:nth-child(2) { display: none; }
  .apds-mobile-toggle { grid-column: 3; grid-row: 1; display: inline-flex; }
  .apds-mobile-toggle span { display: none; }
  .apds-search { grid-column: 1 / -1; grid-row: 2; width: 100%; height: 44px; }
  .apds-search input, .apds-search button { height: 44px; }
  .apds-nav { display: none; border-top: 1px solid var(--ap-border); box-shadow: 0 14px 28px rgba(9,42,70,.12); }
  .apds-header.is-nav-open .apds-nav { display: block; }
  .apds-nav__inner { display: block; padding-block: 12px 18px; }
  .apds-nav__list { display: block; overflow: visible; }
  .apds-nav__list li { border-bottom: 1px solid #edf2f6; }
  .apds-nav__list a { min-height: 46px; padding-inline: 6px; }
  .apds-nav__category a { margin: 4px 0; padding-inline: 12px; }
  .apds-nav__quote { width: 100%; margin-top: 14px; }
  .apds-footer { margin-top: 40px; }
  .apds-footer .apds-container { padding-block: 36px 22px; }
  .apds-footer__grid { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .apds-footer__brand, .apds-footer__newsletter { grid-column: 1 / -1; }
  .apds-footer__bottom { align-items: flex-start; flex-direction: column; }
  .apds-footer__bottom nav { flex-wrap: wrap; gap: 10px 0; }
}

@media (max-width: 440px) {
  .apds-brand__tagline { display: none; }
  .apds-brand__name { font-size: 18px; }
  .apds-brand__name strong { font-size: 9px; }
  .apds-actions { gap: 4px; }
  .apds-action { min-width: 34px; }
  .apds-mobile-toggle { min-width: 40px; padding-inline: 8px; }
  .apds-footer__grid { grid-template-columns: 1fr; }
  .apds-footer__brand, .apds-footer__newsletter { grid-column: auto; }
  .apds-newsletter { grid-template-columns: 1fr; gap: 8px; }
  .apds-newsletter input, .apds-newsletter button { border-radius: var(--ap-radius); }
}

