/* Shared type, footer and compact subpage rhythm across the public site. */
:root {
  --pg-font: Arial, Helvetica, sans-serif;
  --pg-display: Arial, Helvetica, sans-serif;
}

body.pg-visual-system,
body.pg-visual-system :is(h1, h2, h3, h4, h5, h6, p, span, a, button, input, select, textarea, label, strong, em, small) {
  font-family: Arial, Helvetica, sans-serif;
}

/* Keep one footer on the home page and every subpage. */
.footer.pg-footer-v4 {
  isolation: isolate;
  padding: clamp(30px, 4vw, 48px) 0 18px;
}
.pg-visual-system footer.pg-footer-v4::before {
  content: "" !important;
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: var(--pg-approved-energy-art) center 48% / cover no-repeat !important;
  opacity: .25 !important;
  filter: none;
  mix-blend-mode: screen;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.pg-visual-system footer.pg-footer-v4::after {
  content: "" !important;
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 8, 17, .46), rgba(2, 8, 17, .58));
}
.pg-visual-system footer.pg-footer-v4 > .container { position: relative; z-index: 1; }

.pg-footer-main {
  grid-template-columns: minmax(180px, .78fr) repeat(3, minmax(150px, 1fr)) !important;
  gap: clamp(18px, 2.4vw, 34px) !important;
}

.pg-footer-main h2 {
  margin-bottom: 10px;
  font-size: .8rem;
}

/* The homepage does not load subpage-unified.css; keep its footer headings at
   the same compact size as every other public page, including narrow phones. */
body.pg-visual-system footer.pg-footer-v4 .pg-footer-main :is(h2, h3) {
  font-size: .82rem !important;
  line-height: 1.3 !important;
}

.pg-footer-logo { inline-size: min(180px, 100%) !important; width: min(180px, 100%) !important; }
.pg-footer-logo picture { inline-size: 100% !important; }
.pg-footer-logo img { inline-size: 100% !important; width: 100% !important; max-inline-size: 180px !important; max-width: 180px !important; block-size: auto !important; }
@supports (zoom: calc(1px / 1px)) {
  @media (min-width: 1024px) { .pg-page-home #pg-footer { zoom: calc(1024px / 100vw) !important; } }
  @media (min-width: 557px) and (max-width: 1023px) { .pg-page-home #pg-footer { zoom: calc(556px / 100vw) !important; } }
}
.pg-footer-brand p,
.pg-footer-contact .pg-global-enquiry-note {
  max-width: 34ch;
  margin-block: 10px 0;
  font-size: .84rem;
  line-height: 1.55;
}

.pg-footer-contact-links,
.pg-footer-support-links { gap: 7px; }
.pg-footer-contact-links a,
.pg-footer-support-links a { font-size: .86rem; line-height: 1.45; }

.pg-footer-trust {
  gap: 14px;
  margin-top: 22px;
  padding-block: 14px;
}

.pg-footer-payment-methods,
.pg-footer-social { gap: 8px; }
.pg-footer-social .pg-social-icon { width: 36px; height: 36px; min-width: 36px; }
.pg-footer-social .pg-social-icon svg { width: 20px; height: 20px; }
.pg-footer-legal { gap: 12px; padding-top: 14px; font-size: .76rem; }

/* The model finder uses a horizontal, touch-friendly brand rail instead of a select menu. */
.pg-registry-brand-rail {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  margin: 14px 0 8px;
  padding: 3px 2px 9px;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.pg-registry-brand-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(74, 151, 217, .42);
  border-radius: 999px;
  background: rgba(4, 17, 33, .94);
  color: #c9def4;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
  scroll-snap-align: start;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.pg-registry-brand-chip:hover { border-color: #35aeff; color: #fff; }
.pg-registry-brand-chip.is-active { border-color: #149fff; background: linear-gradient(110deg, rgba(0, 104, 190, .72), rgba(137, 14, 43, .64)); color: #fff; box-shadow: 0 0 18px rgba(24, 143, 255, .2); }
.pg-registry-brand-chip:focus-visible { outline: 3px solid #39b5ff; outline-offset: 2px; }
.pg-registry-brand-source { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
@media (prefers-reduced-motion: reduce) { .pg-registry-brand-chip { transition: none; } }

/* WhatsApp green and Viber purple remain recognizable in every footer/contact. */
.pg-social-icon svg .pg-brand-disc,
.pg-mini-icon svg .pg-brand-disc {
  stroke: none;
}
.pg-social-icon svg.pg-brand-whatsapp .pg-brand-disc,
.pg-mini-icon svg.pg-brand-whatsapp .pg-brand-disc { fill: #25D366; }
.pg-social-icon svg.pg-brand-whatsapp .pg-brand-mark,
.pg-mini-icon svg.pg-brand-whatsapp .pg-brand-mark { fill: #fff; stroke: none; }
.pg-social-icon svg.pg-brand-viber .pg-brand-disc,
.pg-mini-icon svg.pg-brand-viber .pg-brand-disc { fill: #7360F2; }
.pg-social-icon svg.pg-brand-viber .pg-brand-mark,
.pg-mini-icon svg.pg-brand-viber .pg-brand-mark {
  fill: none;
  stroke: #fff;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The B2B hero should read as open page content, not a box around the page. */
.subpage-shell .pg-partner-page .pg-partner-hero {
  padding: clamp(28px, 3vw, 46px) 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.subpage-shell .pg-partner-page { padding-block-start: clamp(16px, 2vw, 28px); }
.subpage-shell .pg-partner-section {
  margin-block: clamp(16px, 2vw, 28px);
  padding-block: clamp(16px, 2vw, 28px);
}

/* Put the partnership introduction above its full-width request form. */
.subpage-shell .pg-partner-form-wrap {
  display: block;
}

.subpage-shell .pg-partner-form-wrap > div:first-child {
  max-width: none;
  margin: 0 0 16px;
}

.subpage-shell .pg-partner-form-wrap > div:first-child h2 {
  max-width: 30ch;
  margin: 5px 0 8px;
  font-size: clamp(1.6rem, 2.7vw, 2.5rem);
}

.subpage-shell .pg-partner-form-wrap > div:first-child p { max-width: 84ch; margin-bottom: 0; }
.subpage-shell .pg-partner-form { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* Keep the clean screen-protector artwork crisp and fitted to its own frame. */
.pg-page-category .product-page[data-category-id="screen_protection"] .product-image-wrap {
  position: relative;
  display: block;
  height: clamp(300px, 31vw, 440px);
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
}

.pg-page-category .product-page[data-category-id="screen_protection"] .product-image-wrap > img {
  position: static;
  display: block;
  width: 100% !important;
  height: 100% !important;
  block-size: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center;
  transform: none !important;
}

@media (max-width: 1100px) {
  .pg-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .pg-footer-brand { grid-column: 1 / -1; }
  .subpage-shell .pg-partner-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .pg-footer-main { grid-template-columns: 1fr !important; }
  .pg-footer-brand { grid-column: auto; }
  .subpage-shell .pg-partner-form { grid-template-columns: 1fr; }
  .subpage-shell .pg-partner-form-wrap > div:first-child h2 { max-width: none; }
  .pg-page-category .product-page[data-category-id="screen_protection"] .product-image-wrap { height: min(76vw, 340px); }
}
