/* Product pages (shared by every product page): long-title banner, intro + stat boxes, photo slider, technical
   specifications panel, options / features card grid and closing call-to-action bar.
   Page-specific extras live in a small file named after the page (e.g. power-distribution-transformers.css). */

  .phero .panel { max-width: min(780px, 100%); }
  .phero .panel h1 { font-size: clamp(38px, 4vw, 72px); }

  /* intro */
  .pd-intro { padding-block: clamp(52px, 5.6vw, 104px) clamp(36px, 3.6vw, 64px); }
  .pd-top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 80px); align-items: end; }
  .pd-top .h-big { font-size: clamp(32px, 3vw, 54px); line-height: 1.12; }
  .pd-top p { margin: 0; font-size: clamp(14.5px, 1.05vw, 17.5px); line-height: 1.95; color: #1f2622; max-width: 46em; }
  .pd-intro .stats { margin-top: clamp(28px, 3vw, 52px); }
  .stat .lab small { font-size: inherit; opacity: .8; }

  /* two-column: gallery + specification */
  .pd-main { padding-block: 0 clamp(56px, 6vw, 110px); }
  .pd-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: clamp(20px, 2.6vw, 48px); align-items: start; }

  .gal { position: sticky; top: 124px; }
  .gal-stage { position: relative; aspect-ratio: 5 / 4; border-radius: 10px; overflow: hidden; border: 1px solid #dfe4e1; background: linear-gradient(160deg, #f8faf9 0%, #e8eeea 100%); }
  .gal-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.04); transition: opacity .7s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
  .gal-slide.is-active { opacity: 1; transform: none; z-index: 1; }
  .gal-slide img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
  .gal-count { position: absolute; z-index: 3; left: 16px; top: 16px; background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; letter-spacing: .05em; font-variant-numeric: tabular-nums; box-shadow: 0 6px 16px -8px rgba(0,0,0,.35); }
  .gal-arrow { position: absolute; z-index: 3; top: 50%; margin-top: -26px; width: 52px; height: 52px; border-radius: 50%; border: 1px solid #cfd6d2; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 10px 22px -12px rgba(0,0,0,.45); transition: background .2s ease, border-color .2s ease, transform .25s ease; }
  .gal-arrow svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s ease; }
  .gal-arrow:hover { background: var(--green); border-color: var(--green); transform: scale(1.08); }
  .gal-arrow:hover svg { stroke: #fff; }
  .gal-prev { left: 14px; } .gal-next { right: 14px; }
  .gal-thumbs { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-top: 10px; scroll-behavior: smooth; }
  .gal-thumbs::-webkit-scrollbar { height: 4px; }
  .gal-thumbs::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
  .gal-thumb { position: relative; display: block; padding: 0; aspect-ratio: 5 / 4; flex: 0 0 calc(33.333% - 7px); border-radius: 8px; overflow: hidden; border: 2px solid #dfe4e1; background: #f1f4f2; transition: border-color .25s ease, transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; scroll-snap-align: start; }
  .gal-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; opacity: .72; transition: opacity .25s ease, transform .5s ease; }
  .gal-thumb i { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--orange); }
  .gal-thumb:hover { transform: translateY(-3px); box-shadow: 0 14px 22px -16px rgba(0,0,0,.5); }
  .gal-thumb:hover img { opacity: 1; transform: scale(1.04); }
  .gal-thumb.is-active { border-color: var(--green); }
  .gal-thumb.is-active img { opacity: 1; }
  .gal-thumb.is-active i { animation: galfill var(--gal-ms, 5500ms) linear forwards; }
  .gal.paused .gal-thumb.is-active i { animation-play-state: paused; }
  @keyframes galfill { to { width: 100%; } }

  .spec { border: 1px solid #dfe4e1; border-radius: 10px; overflow: hidden; background: #fff; }
  .spec-head { display: flex; align-items: center; gap: 14px; padding: 18px 24px; background: var(--navy); color: #fff; }
  .spec-head .ic { flex: none; width: 38px; height: 38px; border-radius: 7px; background: var(--green); display: grid; place-items: center; }
  .spec-head .ic svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .spec-head h2 { margin: 0; font-size: clamp(17px, 1.35vw, 22px); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
  .spec-list { margin: 0; padding: 0; }
  .srow { position: relative; display: grid; grid-template-columns: minmax(110px, 168px) minmax(0, 1fr); gap: 8px 22px; padding: 17px 24px; border-top: 1px solid #edf0ee; transition: background .25s ease; }
  .srow:first-child { border-top: 0; }
  .srow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--green), var(--orange)); transform: scaleY(0); transform-origin: top; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
  .srow:hover { background: #f5f9f6; }
  .srow:hover::before { transform: scaleY(1); }
  .srow dt { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-deep); padding-top: 3px; }
  .srow dd { margin: 0; font-size: clamp(14.5px, 1vw, 16px); line-height: 1.75; color: #1f2622; }
  .srow dd b { font-weight: 700; }
  .srow dd p { margin: 0; } .srow dd p + p { margin-top: 6px; }
  .pills { display: flex; flex-wrap: wrap; gap: 8px; }
  .pill { display: inline-block; padding: 5px 13px; border-radius: 999px; background: #eaf0ec; font-size: 13.5px; font-weight: 600; line-height: 1.5; transition: background .2s ease, color .2s ease; }
  .pill:hover { background: var(--green); color: #fff; }
  .spec-cta { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 24px; background: #f4f7f5; border-top: 1px solid #edf0ee; }

  /* options */
  .opts { padding-block: 0 clamp(64px, 7vw, 130px); }
  .opts-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
  .opts .h-big { font-size: clamp(32px, 3vw, 54px); }
  .opts-head p { margin: 0; max-width: 34em; font-size: clamp(14.5px, 1.02vw, 17px); line-height: 1.85; color: #1f2622; }
  .ogrid { margin-top: clamp(26px, 3vw, 52px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.1vw, 18px); }
  .ogrid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ocard {
    --hc: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
    position: relative; overflow: hidden; isolation: isolate; cursor: default; border-radius: 8px; background: var(--card);
    padding: clamp(22px, 2vw, 34px); min-height: clamp(210px, 15vw, 270px); display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
    transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
  }
  .ocard:nth-child(3n+2) { --hc: linear-gradient(160deg, #24384a 0%, #0e1822 100%); }
  .ocard:nth-child(3n) { --hc: linear-gradient(160deg, #f93334 0%, #b81f25 100%); }
  .ocard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hc); transform: translateY(101%); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
  .ocard .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .ocard .ic { width: clamp(44px, 3.4vw, 58px); height: clamp(44px, 3.4vw, 58px); color: var(--green); transition: color .3s ease, transform .6s cubic-bezier(.2,.8,.3,1.2); }
  .ocard:nth-child(3n) .ic { color: var(--red); }
  .ocard:nth-child(3n+2) .ic { color: #1b2a38; }
  .ocard .ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .ocard .n { font-size: clamp(26px, 2.2vw, 40px); font-weight: 700; line-height: 1; color: #c6ccc8; font-variant-numeric: tabular-nums; transition: color .3s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
  .ocard h3 { margin: 0; font-size: clamp(18px, 1.5vw, 24px); font-weight: 700; line-height: 1.22; transition: color .3s ease; }
  .ocard p { margin: 10px 0 0; font-size: clamp(14px, .96vw, 15.5px); line-height: 1.75; color: #2a322d; transition: color .3s ease; }
  .ocard:hover, .ocard:focus-visible { transform: translateY(-7px); box-shadow: 0 24px 36px -20px rgba(8,40,22,.6); }
  .ocard:hover::before, .ocard:focus-visible::before { transform: translateY(0); }
  .ocard:hover h3, .ocard:focus-visible h3, .ocard:hover p, .ocard:focus-visible p, .ocard:hover .ic, .ocard:focus-visible .ic, .ocard:hover .n, .ocard:focus-visible .n { color: #fff; }
  .ocard:hover .n, .ocard:focus-visible .n { color: rgba(255,255,255,.55); transform: scale(1.12); }
  .ocard:hover .ic, .ocard:focus-visible .ic { transform: rotate(-6deg) scale(1.1); }

  .octa { margin-top: clamp(14px, 1.4vw, 24px); display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; border-radius: 10px; padding: clamp(24px, 2.6vw, 44px) clamp(24px, 3vw, 52px); color: #fff; background: radial-gradient(700px 300px at 100% 0%, rgba(14,122,60,.5), transparent 70%), var(--navy); }
  .octa h3 { margin: 0; font-size: clamp(22px, 2vw, 34px); font-weight: 700; line-height: 1.2; }
  .octa p { margin: 8px 0 0; font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.85); }

  @media (max-width: 1200px) {
    .ogrid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 1020px) {
    .phero-in { padding-top: 150px; }
    .pd-top { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .pd-grid { grid-template-columns: minmax(0, 1fr); }
    .gal { position: static; }
    .ogrid, .ogrid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 640px) {
    .gal-count { left: 8px; top: 8px; padding: 4px 9px; font-size: 11px; }
    .phero { min-height: 400px; }
    .phero .panel h1 { font-size: clamp(28px, 8.4vw, 40px); }
    .srow { grid-template-columns: minmax(0, 1fr); padding: 16px 18px; }
    .spec-head, .spec-cta { padding-inline: 18px; }
    .gal-arrow { width: 44px; height: 44px; margin-top: -22px; }
    .ogrid, .ogrid.cols-4 { grid-template-columns: minmax(0, 1fr); }
    .ocard { min-height: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .phero-bg img, .phero .panel, .phero .panel .rule, .phero .panel .edge, .gal-thumb.is-active i { animation: none !important; }
    .phero .panel .rule { transform: translateY(-100%); } .phero .panel .edge { transform: none; }
    .gal-slide, .gal-thumb, .gal-thumb img, .srow, .srow::before, .ocard, .ocard::before, .ocard .ic, .ocard .n { transition: none; }
    .gal-thumb.is-active i { width: 100%; }
  }