/* =====================================================================
   PATTERN Energy — global trade layer (v3.7.0)
   ---------------------------------------------------------------------
   Design intent: a factory-direct trade look built for buyers in Africa,
   the Middle East, Southeast Asia and South America.

   What those buyers respond to (and what this file adds):
     - High contrast navy + warm accent bands that read well on phones
       and in bright daylight, not soft pastel brochure sections.
     - Trade terms up front: MOQ, lead time, payment, warranty, reply time.
     - Instant channels: WhatsApp first, then phone and quote.
     - Proof as tiles: real installations, regions served, certificates.
     - Answer-first text blocks and spec tables — also what AI answer
       engines quote, so GEO and SEO get the same source of truth.

   Loaded site-wide AFTER main.css (and after home.css on the front page),
   so these rules win over the older brochure styling. All classes are
   namespaced pe7-* to make the upgrade easy to trace later.
   ===================================================================== */

:root {
  --pe7-navy: #081830;
  --pe7-navy-2: #0b2447;
  --pe7-navy-3: #123058;
  --pe7-orange: #f97316;
  --pe7-sun: #ffb020;
  --pe7-teal: #0e9f6e;
  --pe7-ink: #0b1f3a;
  --pe7-body: #46566b;
  --pe7-mute: #7a8899;
  --pe7-line: #e3eaf2;
  --pe7-bg: #f6f9fc;
  --pe7-radius: 18px;
  --pe7-shadow: 0 2px 4px rgba(8, 24, 48, .04), 0 18px 40px rgba(8, 24, 48, .08);
  --pe7-shadow-lg: 0 6px 12px rgba(8, 24, 48, .06), 0 28px 60px rgba(8, 24, 48, .14);
}

/* ---------- shared shell ---------- */
.pe7-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.pe7-section { padding: 96px 0; }
.pe7-bg-white { background: #fff; }
.pe7-bg-tint { background: var(--pe7-bg); }

/* Section heading — left aligned by default (breaks the centred
   brochure rhythm), with a warm rule under it. */
.pe7-head { max-width: 860px; margin-bottom: 48px; }
.pe7-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.pe7-kicker {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--pe7-orange);
}
.pe7-head h2 {
  margin: 14px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--pe7-ink);
}
.pe7-head p {
  margin: 16px 0 0;
  color: var(--pe7-body);
  font-size: 1rem;
  line-height: 1.75;
}
.pe7-rule {
  width: 68px;
  height: 5px;
  margin-top: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pe7-orange), var(--pe7-sun));
}
.pe7-head--center .pe7-rule { margin-left: auto; margin-right: auto; }

/* ---------- 1. trade band: the numbers buyers ask for first ---------- */
.pe7-band {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #071427 0%, var(--pe7-navy-2) 48%, var(--pe7-navy-3) 100%);
}
.pe7-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1100px 320px at 12% 0%, rgba(249, 115, 22, .20), transparent 70%),
    radial-gradient(900px 300px at 88% 100%, rgba(255, 176, 32, .14), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 72px);
  pointer-events: none;
}
.pe7-band-inner { position: relative; padding: 60px 0 54px; }

.pe7-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pe7-trust-item {
  padding: 24px 22px 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(2px);
}
.pe7-trust-item:hover { border-color: rgba(255, 176, 32, .6); }
.pe7-trust-k {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pe7-sun);
}
.pe7-trust-v {
  margin-top: 10px;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.pe7-trust-d {
  margin-top: 8px;
  font-size: .84rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .74);
}

/* ---------- 2. region coverage strip ---------- */
.pe7-regions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.pe7-regions-label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  margin-right: 4px;
}
.pe7-region {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.pe7-region:hover {
  background: var(--pe7-orange);
  border-color: var(--pe7-orange);
  transform: translateY(-2px);
}
.pe7-region svg { width: 16px; height: 16px; flex: none; color: var(--pe7-sun); }
.pe7-region:hover svg { color: #fff; }
.pe7-regions-note {
  margin-left: auto;
  font-size: .8rem;
  color: rgba(255, 255, 255, .68);
}

/* ---------- 3. application mosaic (asymmetric tile wall) ---------- */
.pe7-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(224px, auto);
  gap: 16px;
}
.pe7-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--pe7-radius);
  background: var(--pe7-navy-2);
  text-decoration: none;
  box-shadow: var(--pe7-shadow);
}
.pe7-tile--wide { grid-column: span 2; }
.pe7-tile--tall { grid-row: span 2; }
.pe7-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .3, 1);
}
.pe7-tile:hover img { transform: scale(1.07); }
.pe7-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 24, 48, .06) 30%, rgba(8, 24, 48, .5) 62%, rgba(6, 18, 36, .92) 100%);
}
.pe7-tile-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 22px 22px 20px;
  color: #fff;
}
.pe7-tile-k {
  display: inline-block;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pe7-sun);
}
.pe7-tile-t {
  display: block;
  margin-top: 8px;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.pe7-tile-d {
  display: block;
  margin-top: 7px;
  font-size: .84rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .82);
}
.pe7-tile-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.pe7-tile:hover .pe7-tile-more { opacity: 1; transform: translateY(0); }

/* ---------- 4. quick answers (answer-first, schema-backed) ---------- */
.pe7-answers { display: grid; gap: 12px; }
.pe7-answer {
  border: 1px solid var(--pe7-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(8, 24, 48, .03);
}
.pe7-answer[open] { border-color: #fcd9b6; box-shadow: var(--pe7-shadow); }
.pe7-answer summary {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pe7-ink);
  line-height: 1.5;
}
.pe7-answer summary::-webkit-details-marker { display: none; }
.pe7-answer summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #fff3e6;
  color: var(--pe7-orange);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}
.pe7-answer[open] summary::before { content: "–"; background: var(--pe7-orange); color: #fff; }
.pe7-answer-body {
  padding: 0 22px 22px 62px;
  color: var(--pe7-body);
  font-size: .94rem;
  line-height: 1.8;
}
.pe7-answer-body a { color: var(--pe7-orange); font-weight: 700; text-decoration: none; }
.pe7-answer-body a:hover { text-decoration: underline; }

/* ---------- 5. comparison table (LiFePO4 vs lead acid) ---------- */
.pe7-tablewrap {
  overflow-x: auto;
  border: 1px solid var(--pe7-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(8, 24, 48, .03);
}
table.pe7-table { width: 100%; min-width: 660px; border-collapse: collapse; }
.pe7-table th,
.pe7-table td {
  padding: 16px 18px;
  text-align: left;
  font-size: .9rem;
  border-bottom: 1px solid var(--pe7-line);
  vertical-align: top;
}
.pe7-table thead th {
  background: #f3f7fb;
  color: var(--pe7-ink);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pe7-table tbody th { width: 30%; font-weight: 700; color: var(--pe7-ink); }
.pe7-table td.is-best { background: #fff8f1; color: #9a3412; font-weight: 700; }
.pe7-table tr:last-child th,
.pe7-table tr:last-child td { border-bottom: 0; }
.pe7-table-note { margin-top: 14px; font-size: .82rem; color: var(--pe7-mute); }
.pe7-table-note a { color: var(--pe7-orange); font-weight: 700; text-decoration: none; }

/* ---------- 6. quote panel ---------- */
.pe7-quote {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  padding: 46px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, #071427 0%, var(--pe7-navy-2) 55%, var(--pe7-navy-3) 100%);
  box-shadow: var(--pe7-shadow-lg);
}
.pe7-quote h2 {
  margin: 12px 0 0;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.pe7-quote p { margin: 16px 0 0; color: rgba(255, 255, 255, .78); line-height: 1.75; }
.pe7-steps { display: grid; gap: 14px; }
.pe7-step { display: flex; gap: 13px; align-items: flex-start; }
.pe7-step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 176, 32, .16);
  color: var(--pe7-sun);
  font-size: .8rem;
  font-weight: 800;
}
.pe7-step-t { font-size: .94rem; font-weight: 700; line-height: 1.4; }
.pe7-step-d { font-size: .84rem; color: rgba(255, 255, 255, .7); line-height: 1.6; }
.pe7-quote-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pe7-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.pe7-btn:hover { transform: translateY(-2px); }
.pe7-btn-wa { background: #25d366; color: #062a12; }
.pe7-btn-wa:hover { background: #1fbe5a; }
.pe7-btn-sun { background: var(--pe7-orange); color: #fff; }
.pe7-btn-sun:hover { background: #ea6a0c; }
.pe7-btn-ghost { border: 1px solid rgba(255, 255, 255, .28); color: #fff; }
.pe7-btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.pe7-btn svg { width: 17px; height: 17px; flex: none; }

/* ---------- 7. key facts list ---------- */
.pe7-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 34px; }
.pe7-fact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px dashed var(--pe7-line);
}
.pe7-fact svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--pe7-teal); }
.pe7-fact-t { font-size: .95rem; font-weight: 700; color: var(--pe7-ink); }
.pe7-fact-d { display: block; margin-top: 4px; font-size: .86rem; color: var(--pe7-body); line-height: 1.6; }

/* ---------- 8. mobile action dock (WhatsApp-first bottom bar) ---------- */
.pe7-dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  display: none;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--pe7-line);
  box-shadow: 0 -8px 24px rgba(8, 24, 48, .1);
  backdrop-filter: blur(8px);
}
.pe7-dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border-radius: 13px;
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
}
.pe7-dock a svg { width: 18px; height: 18px; flex: none; }
.pe7-dock-wa { background: #25d366; color: #062a12; }
.pe7-dock-call { background: #eef3f9; color: var(--pe7-navy-2); }
.pe7-dock-quote { background: var(--pe7-navy-2); color: #fff; }
.pe7-dock-note {
  grid-column: 1 / -1;
  text-align: center;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--pe7-mute);
  padding-bottom: 2px;
}

/* ---------- 9. small utility: fact chips used inside sections ---------- */
.pe7-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pe7-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--pe7-line);
  border-radius: 999px;
  background: #fff;
  font-size: .82rem;
  font-weight: 700;
  color: var(--pe7-ink);
}
.pe7-chip svg { width: 15px; height: 15px; flex: none; color: var(--pe7-teal); }

/* ---------- header visibility helpers ----------
   The compiled Tailwind bundle predates these xl:* utilities, so classes like
   hidden xl:flex would silently no-op. These pe7-* classes provide the same
   behaviour through CSS we control. */
.pe7-topbar-left,
.pe7-topbar-wide,
.pe7-nav-wa { display: none; }
@media (min-width: 1280px) {
  .pe7-topbar-left { display: flex; }
  .pe7-topbar-wide { display: flex; }
  .pe7-nav-wa { display: inline-flex; }
}

/* ---------- footer: long addresses and emails must wrap, not push ---------- */
footer { overflow-wrap: anywhere; }

/* ---------- responsive ---------- */
/* Navbar squeeze zone: between lg (nav visible) and xl (full topbar shown),
   the menu + CTAs are wider than the viewport. Tighten paddings instead of
   hiding menu items, since Tailwind here is precompiled and new utility
   classes would silently no-op. */
@media (min-width: 1024px) and (max-width: 1279px) {
  header nav[aria-label="Main navigation"] > a,
  header nav[aria-label="Main navigation"] > div > a {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: .84rem !important;
  }
  header nav[aria-label="Main navigation"] a[href*="contact-us"],
  header nav[aria-label="Main navigation"] a[href*="whatsapp"] {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  header > div > a[aria-label="PATTERN home"] img { height: 34px !important; }
}
@media (max-width: 1023px) {
  .pe7-section { padding: 76px 0; }
  .pe7-trust { grid-template-columns: repeat(2, 1fr); }
  .pe7-mosaic { grid-template-columns: repeat(2, 1fr); }
  .pe7-quote { grid-template-columns: 1fr; gap: 28px; padding: 34px; }
}
@media (max-width: 767px) {
  .pe7-facts { grid-template-columns: 1fr; }
  .pe7-regions-note { margin-left: 0; width: 100%; }
  /* keep the fixed dock clear of page content */
  body { padding-bottom: 78px; }
  .pe7-dock { display: grid; }
}
@media (max-width: 639px) {
  .pe7-section { padding: 62px 0; }
  .pe7-band-inner { padding: 46px 0 42px; }
  .pe7-trust { grid-template-columns: 1fr; gap: 12px; }
  .pe7-trust-item { padding: 20px; }
  .pe7-mosaic { grid-template-columns: 1fr; grid-auto-rows: minmax(210px, auto); }
  .pe7-tile--wide { grid-column: auto; }
  .pe7-tile--tall { grid-row: auto; }
  .pe7-tile-more { opacity: 1; transform: none; }
  .pe7-answer-body { padding-left: 22px; }
  .pe7-quote { padding: 26px 22px; border-radius: 20px; }
  .pe7-quote-actions .pe7-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .pe7-tile img,
  .pe7-tile-more,
  .pe7-btn,
  .pe7-region { transition: none; }
  .pe7-tile:hover img { transform: none; }
}

/* =====================================================================
   v3.7.2 additions
   ===================================================================== */

/* The band now carries the page's <h1> (previously it held a centred h2 and
   the H1 sat in a separate brand section further down the page). */
.pe7-head h1 {
  margin: 14px 0 0;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.08;
  color: var(--pe7-ink);
}
.pe7-band .pe7-head h1 { color: #fff; }

.pe7-band-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.pe7-head--center .pe7-band-cta { justify-content: center; }

/* The chips list is centred inside the band heading. */
.pe7-head--center .pe7-chips { justify-content: center; margin-top: 26px; }

/* Chips on the navy band: same pill, swapped to the dark palette. */
.pe7-chips--dark .pe7-chip {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
}
.pe7-chips--dark .pe7-chip svg { color: var(--pe7-sun); }

@media (max-width: 639px) {
  .pe7-band-cta .pe7-btn { flex: 1 1 100%; justify-content: center; }
}

/* =====================================================================
   v3.8.5 product catalogue hierarchy
   ===================================================================== */
.pe-products-mega { width: min(940px, calc(100vw - 32px)); transform: translateX(-35%); }
.pe-products-mega-panel { overflow: hidden; border: 1px solid #e5eaf1; border-radius: 18px; background: #fff; box-shadow: 0 22px 55px rgba(8,24,48,.18); }
.pe-products-mega-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 22px; background: #081830; color: #fff; }
.pe-products-mega-top span { display: block; color: #ff7019; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.pe-products-mega-top strong { display: block; margin-top: 3px; font-size: 15px; }
.pe-products-mega-top > a { color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; }
.pe-products-mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; padding: 10px; }
.pe-products-mega-group { padding: 14px 14px 16px; border-radius: 12px; }
.pe-products-mega-group:hover { background: #f8fafc; }
.pe-products-mega-group > a { display: block; padding: 4px 0; color: #526076; font-size: 12px; line-height: 1.35; }
.pe-products-mega-group > a:hover { color: #f26419; }
.pe-products-mega-group .pe-products-mega-heading { margin-bottom: 5px; color: #081830; font-size: 12px; font-weight: 900; letter-spacing: .035em; text-transform: uppercase; }

.pe-catalog-section { padding: 64px 0 82px; background: #f6f8fb; }
.pe-catalog-layout { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 34px; align-items: start; margin-top: 28px; }
.pe-catalog-sidebar { position: sticky; top: 132px; overflow: hidden; border: 1px solid #dfe5ed; border-radius: 16px; background: #fff; box-shadow: 0 12px 35px rgba(8,24,48,.07); }
.pe-catalog-sidebar-title { padding: 22px 22px 18px; background: #081830; color: #fff; font-size: 18px; font-weight: 850; }
.pe-catalog-all { display: block; padding: 13px 22px; border-bottom: 1px solid #edf0f4; color: #26364d; font-size: 14px; font-weight: 750; }
.pe-catalog-all.is-active, .pe-catalog-all:hover { color: #f26419; background: #fff8f3; }
.pe-catalog-group { border-bottom: 1px solid #edf0f4; }
.pe-catalog-group:last-child { border-bottom: 0; }
.pe-catalog-parent { display: flex; justify-content: space-between; gap: 14px; padding: 15px 22px 10px; color: #081830; font-size: 12px; font-weight: 900; letter-spacing: .035em; line-height: 1.35; text-transform: uppercase; }
.pe-catalog-group.is-active .pe-catalog-parent, .pe-catalog-parent:hover { color: #f26419; }
.pe-catalog-parent span:last-child { font-size: 20px; line-height: 14px; }
.pe-catalog-children { padding: 0 22px 13px; }
.pe-catalog-children a { display: block; position: relative; padding: 5px 0 5px 13px; color: #68758a; font-size: 12px; line-height: 1.45; }
.pe-catalog-children a::before { content: ''; position: absolute; left: 0; top: 12px; width: 4px; height: 4px; border-radius: 99px; background: #b8c1ce; }
.pe-catalog-children a:hover, .pe-catalog-children a.is-active { color: #e85d12; font-weight: 750; }
.pe-catalog-children a.is-active::before { background: #f26419; }
.pe-catalog-main { min-width: 0; }
.pe-catalog-heading { padding: 4px 0 2px; }
.pe-catalog-kicker { margin: 0 0 8px !important; color: #f26419 !important; font-size: 11px !important; font-weight: 900; letter-spacing: .16em; }
.pe-catalog-heading h2 { margin: 0; color: #081830; font-size: clamp(28px,3vw,42px); font-weight: 900; letter-spacing: -.035em; line-height: 1.08; }
.pe-catalog-heading > p:last-child { max-width: 760px; margin: 14px 0 0; color: #647188; font-size: 15px; line-height: 1.75; }
.pe-catalog-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.pe-catalog-chips a { padding: 9px 13px; border: 1px solid #dfe5ed; border-radius: 999px; background: #fff; color: #34445c; font-size: 12px; font-weight: 700; }
.pe-catalog-chips a:hover { border-color: #f26419; color: #e85d12; }
.pe-catalog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: 30px; }
.pe-catalog-empty { margin-top: 30px; padding: 42px; border: 1px solid #e1e6ed; border-radius: 18px; background: #fff; text-align: center; }
.pe-catalog-empty > span { color: #f26419; font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.pe-catalog-empty h3 { margin: 8px 0 10px; color: #081830; font-size: 24px; font-weight: 850; }
.pe-catalog-empty p { max-width: 620px; margin: 0 auto; color: #68758a; line-height: 1.7; }
.pe-catalog-empty a { display: inline-flex; margin-top: 22px; padding: 11px 20px; border-radius: 8px; background: #f26419; color: #fff; font-size: 13px; font-weight: 800; }

@media (max-width: 1100px) {
  .pe-products-mega { width: 820px; transform: translateX(-32%); }
  .pe-catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .pe-catalog-layout { grid-template-columns: 1fr; }
  .pe-catalog-sidebar { position: static; }
  .pe-catalog-children { display: flex; flex-wrap: wrap; gap: 2px 18px; }
  .pe-catalog-children a { width: calc(50% - 9px); }
}
@media (max-width: 639px) {
  .pe-catalog-section { padding: 42px 0 58px; }
  .pe-catalog-layout { gap: 26px; margin-top: 20px; }
  .pe-catalog-sidebar-title { padding: 18px; }
  .pe-catalog-parent, .pe-catalog-all { padding-left: 18px; padding-right: 18px; }
  .pe-catalog-children { padding-left: 18px; padding-right: 18px; display: block; }
  .pe-catalog-children a { width: 100%; }
  .pe-catalog-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  .pe-catalog-empty { padding: 30px 20px; }
}

/* v3.8.6 — simplified two-level catalogue: large categories first */
.pe-products-mega { width: min(900px, calc(100vw - 32px)); transform: translateX(-34%); }
.pe-products-mega-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; padding: 12px; }
.pe-products-mega-group { display: flex !important; min-height: 126px; padding: 16px !important; flex-direction: column; justify-content: space-between; border: 1px solid #e7ebf0; background: #fff; }
.pe-products-mega-group:hover { border-color: #f58a4c; background: #fff8f3; transform: translateY(-2px); }
.pe-products-mega-group strong { color: #081830; font-size: 12px; font-weight: 900; line-height: 1.35; text-transform: uppercase; }
.pe-products-mega-group span { color: #7a8697; font-size: 11px; }
.pe-products-mega-group b { color: #f26419; font-size: 18px; font-weight: 500; }

.pe-catalog-sidebar { box-shadow: 0 10px 28px rgba(8,24,48,.055); }
.pe-catalog-group .pe-catalog-parent { padding: 17px 22px; }
.pe-catalog-group.is-active { background: #fff7f1; box-shadow: inset 3px 0 #f26419; }

.pe-catalog-category-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 30px; }
.pe-catalog-category-card { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 18px; min-height: 220px; padding: 28px; border: 1px solid #e0e6ee; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(8,24,48,.045); transition: border-color .2s, box-shadow .2s, transform .2s; }
.pe-catalog-category-card:first-child { grid-column: span 2; min-height: 190px; }
.pe-catalog-category-card:hover { border-color: #f58a4c; box-shadow: 0 16px 34px rgba(8,24,48,.09); transform: translateY(-3px); }
.pe-catalog-category-number { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: #fff1e8; color: #ef6418; font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.pe-catalog-category-card h3 { margin: 2px 0 11px; color: #081830; font-size: 20px; font-weight: 900; letter-spacing: -.025em; }
.pe-catalog-category-card p { display: -webkit-box; overflow: hidden; margin: 0; color: #677489; font-size: 13px; line-height: 1.65; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.pe-catalog-category-card strong { display: block; margin-top: 20px; color: #e85d12; font-size: 12px; font-weight: 800; }
.pe-catalog-category-card strong b { margin-left: 5px; font-size: 16px; font-weight: 500; }

.pe-catalog-subcategories { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 28px; }
.pe-catalog-subcategories a { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; padding: 15px 18px; border: 1px solid #e0e6ee; border-radius: 12px; background: #fff; color: #24354e; font-size: 13px; font-weight: 750; line-height: 1.4; }
.pe-catalog-subcategories a:hover, .pe-catalog-subcategories a.is-active { border-color: #f26419; background: #fff7f1; color: #e85d12; }
.pe-catalog-subcategories b { flex: 0 0 auto; color: #f26419; font-size: 17px; font-weight: 500; }

@media (max-width: 1100px) {
  .pe-products-mega { width: 780px; }
  .pe-products-mega-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .pe-products-mega-group { min-height: 105px; }
}
@media (max-width: 767px) {
  .pe-catalog-category-grid { grid-template-columns: 1fr; }
  .pe-catalog-category-card:first-child { grid-column: auto; min-height: 0; }
  .pe-catalog-category-card { min-height: 0; }
}
@media (max-width: 639px) {
  .pe-catalog-category-card { grid-template-columns: 42px minmax(0,1fr); gap: 13px; padding: 21px 18px; border-radius: 14px; }
  .pe-catalog-category-number { width: 38px; height: 38px; }
  .pe-catalog-category-card h3 { font-size: 17px; }
  .pe-catalog-subcategories { grid-template-columns: 1fr; }
}
