/*
Theme Name: Hengtong
Theme URI: https://hengtonghardware.com/
Author: Dingzhou Hengtong Hardware Products Co., Ltd.
Description: Custom theme rebuilt from the Day-1 prototype — Apple-clean, direct-from-factory.
Version: 1.0
Text Domain: hengtong
*/

  :root{
    --bg:#ffffff;
    --bg-soft:#f5f5f7;
    --bg-card:#ffffff;
    --ink:#1d1d1f;
    --ink-2:#424245;
    --ink-3:#6e6e73;
    --line:#d9d9de;
    --red:#D54028;
    --red-dark:#b23320;
    --navy:#0a2a52;
    --navy-2:#0d3464;
    --header-bg:rgba(255,255,255,.86);
    --footer-bg:#101418;
    --footer-ink:#e8e9eb;
    --footer-ink-2:#a7adb5;
    --shadow:0 10px 34px rgba(0,0,0,.08);
    --radius:14px;
  }
  @media (prefers-color-scheme: dark){
    :root{
      --bg:#0e1116;
      --bg-soft:#161b22;
      --bg-card:#171c24;
      --ink:#f2f3f5;
      --ink-2:#c9ccd1;
      --ink-3:#9aa0a8;
      --line:#2b323c;
      --header-bg:rgba(14,17,22,.86);
      --shadow:0 10px 34px rgba(0,0,0,.45);
    }
  }
  *{box-sizing:border-box}
  html{scroll-behavior:smooth}
  body{
    margin:0;background:var(--bg);color:var(--ink);
    font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue","Segoe UI",Arial,sans-serif;
    font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased;
  }
  img{display:block;max-width:100%}
  a{color:var(--red);text-decoration:none}
  a:hover{text-decoration:underline}
  button,[role="button"],input,select,textarea{font:inherit}
  button,[role="button"],select,input:not([type="checkbox"],[type="radio"]),textarea{min-height:2.25rem}
  .wrap{max-width:1180px;margin:0 auto;padding:0 24px}

  /* ---------- Header ---------- */
  header.site{
    position:sticky;top:0;z-index:60;background:var(--header-bg);
    backdrop-filter:saturate(160%) blur(14px);-webkit-backdrop-filter:saturate(160%) blur(14px);
    border-bottom:1px solid var(--line);
  }
  .header-in{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:60px}
  .brand{display:flex;align-items:center;gap:11px;color:var(--ink);flex:none}
  .brand:hover{text-decoration:none}
  .brand img.logo{height:48px;width:auto;display:block}
  @media (max-width:600px){.brand img.logo{height:40px}}
  nav.main{display:flex;align-items:center;gap:30px;white-space:nowrap}
  nav.main a{color:var(--ink-2);font-size:16px;font-weight:500;letter-spacing:.02em;padding:10px 2px}
  nav.main a:hover{color:var(--red);text-decoration:none}
  nav.main a.active{color:var(--red)}
  .burger{
    display:none;background:none;border:0;cursor:pointer;padding:10px;margin-right:-10px;
    width:44px;height:44px;align-items:center;justify-content:center;
  }
  .burger svg{display:block}
  .mobile-menu{display:none;border-top:1px solid var(--line);padding:8px 0 14px}
  .mobile-menu a{display:block;color:var(--ink);font-size:17px;font-weight:600;padding:13px 24px}
  .mobile-menu a:hover{text-decoration:none;background:var(--bg-soft);color:var(--red)}
  .mobile-menu a.active{color:var(--red)}
  body.menu-open .mobile-menu{display:block}
  @media (max-width:880px){
    nav.main{display:none}
    .burger{display:flex}
  }

  /* ---------- Hero (image complete, text below) ---------- */
  .hero{background:var(--bg)}
  /* Hero media: full-bleed short wide band, 300px on desktop. The combined
     aerial video is already true ultrawide (1920x720, cropped from 4K, never
     stretched), so it fills the band edge to edge with object-fit:cover —
     no blurred backdrop, no side gaps, no white/black bars. */
  .hero-media{position:relative;width:100%;height:300px;overflow:hidden;background:#101c26}
  .hero-media video,.hero-media img.hero-still{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
  .hero-media img.hero-still{display:none}
  .hero-label{position:absolute;z-index:3;opacity:0;transition:opacity .7s ease}
  .hero-label .tag{display:block;background:rgba(255,255,255,.96);color:#1a1a1a;font-size:14px;font-weight:700;line-height:1.3;padding:8px 12px;border-radius:10px;box-shadow:0 4px 16px rgba(0,0,0,.28);white-space:nowrap}
  .hero-label .tag small{display:block;font-weight:500;color:#555;font-size:12.5px}
  .hero-label .dot{display:block;width:16px;height:16px;margin:0 auto 6px;border-radius:50%;background:#d54028;border:3px solid #fff;box-shadow:0 2px 10px rgba(0,0,0,.45);animation:heroPulse 2.2s ease-out infinite}
  @keyframes heroPulse{0%{box-shadow:0 0 0 0 rgba(213,64,40,.55),0 2px 10px rgba(0,0,0,.45)}70%{box-shadow:0 0 0 16px rgba(213,64,40,0),0 2px 10px rgba(0,0,0,.45)}100%{box-shadow:0 0 0 0 rgba(213,64,40,0),0 2px 10px rgba(0,0,0,.45)}}
  .hero-label.on{opacity:1}
  .hero-label-blue{left:24%;top:22%}
  .hero-label-red{left:72%;top:48%}
  .hero-banner{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);z-index:3;background:rgba(20,32,56,.92);color:#fff;font-size:clamp(14px,1.9vw,20px);font-weight:700;padding:11px 22px;border-radius:999px;white-space:nowrap;opacity:0;transition:opacity .8s ease;box-shadow:0 6px 22px rgba(0,0,0,.35)}
  .hero-banner.on{opacity:1}
  .hero-legend{display:none}
  @media (max-width:700px){
    .hero-media{height:auto;aspect-ratio:16/9}
    .hero-media video{display:none}
    .hero-media img.hero-still{display:block}
    .hero-label,.hero-banner{display:none}
    .hero-legend{display:block;padding:12px 0 0;font-size:15px;line-height:1.6}
    .hero-legend .item{display:flex;gap:10px;align-items:baseline;padding:7px 0;border-bottom:1px solid var(--line)}
    .hero-legend .dot{flex:none;width:12px;height:12px;border-radius:50%;background:#d54028;border:2px solid #fff;box-shadow:0 0 0 1.5px #d54028;transform:translateY(1px)}
    .hero-legend .one-factory{margin-top:12px;background:#142038;color:#fff;font-weight:700;font-size:15px;padding:11px 16px;border-radius:12px;text-align:center}
    .hero-in{padding-top:24px}
  }
  .hero-in{padding:30px 0 2px;max-width:820px}
  .hero h1{font-size:clamp(32px,4.6vw,52px);line-height:1.12;font-weight:800;letter-spacing:-.018em;margin:0 0 14px;white-space:nowrap}
  @media (max-width:700px){.hero h1{white-space:normal}}
  .hero .lede{font-size:clamp(19px,2.4vw,25px);line-height:1.45;font-weight:550;color:var(--ink-2);margin:0 0 12px;max-width:640px}
  .hero p{font-size:clamp(17px,2vw,20px);line-height:1.55;color:var(--ink-2);margin:0 0 22px;max-width:640px}
  .photo-cap{font-size:14px;line-height:1.55;color:var(--ink-3);padding-top:10px;margin:0}
  figure{margin:0}
  .hero-cta{display:flex;flex-wrap:wrap;gap:14px}
  .btn{
    display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;
    border-radius:999px;border:0;font-weight:600;font-size:16px;padding:13px 26px;min-height:48px;
  }
  .btn-red{background:var(--red);color:#fff}
  .btn-red:hover{background:var(--red-dark);text-decoration:none}
  .btn-ghost{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.55)}
  .btn-ghost:hover{background:rgba(255,255,255,.24);text-decoration:none}
  .btn-outline{background:transparent;color:var(--ink);border:1px solid var(--line)}
  .btn-outline:hover{border-color:var(--ink-3);text-decoration:none}

  /* ---------- Sections ---------- */
  section{padding:84px 0}
  section.soft{background:var(--bg-soft)}
  .sec-head{max-width:760px;margin-bottom:44px}
  .sec-head h2{font-size:clamp(30px,4vw,44px);line-height:1.12;font-weight:800;letter-spacing:-.015em;margin:0 0 14px}
  .sec-head p{color:var(--ink-2);font-size:18px;margin:0}
  .group-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;border-bottom:2px solid var(--ink);padding-bottom:12px;margin:52px 0 26px}
  .group-head:first-of-type{margin-top:0}
  .group-head h3{font-size:24px;font-weight:750;margin:0;letter-spacing:-.01em}
  .group-head span{color:var(--ink-3);font-size:14.5px;white-space:nowrap}
  /* Language versions live ONLY in the separate section below the main grid,
     grouped by language — never inside the main product grid. */
  .lang-group{margin:0 0 30px}
  .lang-group > h4{font-size:19px;font-weight:700;margin:0 0 16px}
  .lang-switch{font-size:14.5px;color:var(--ink-3);margin:2px 0 0}
  .lang-switch a{color:var(--ink-2);font-weight:600}

  .lead{font-size:clamp(19px,2.4vw,24px);line-height:1.5;color:var(--ink);max-width:840px;margin:0 0 18px;font-weight:500}
  .body-copy{color:var(--ink-2);max-width:760px;margin:0}
  .stats{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:52px}
  .stat{border-top:3px solid var(--red);padding-top:16px}
  .stat b{display:block;font-size:clamp(38px,4.6vw,54px);font-weight:800;letter-spacing:-.02em;line-height:1}
  .stat span{display:block;color:var(--ink-3);margin-top:8px;font-size:15.5px}
  .stats.compact{margin-top:30px}
  .stats.compact .stat{padding-top:12px}
  .stats.compact b{font-size:clamp(30px,3.4vw,40px)}
  .stats.compact span{margin-top:5px;font-size:14.5px}
  section.factory-home{padding:38px 0 4px}
  @media (max-width:600px){.stats.compact{grid-template-columns:repeat(3,1fr);gap:14px}.stats.compact b{font-size:25px}.stats.compact span{font-size:12.5px}}

  .cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
  .card{background:var(--bg-card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}
  .card img{width:100%;height:190px;object-fit:cover;object-position:center}
  /* Product photos are plain, swappable files: one main image + gallery images per product,
     referenced by file name only — no crops or text baked into the image files, so any photo
     can be swapped by replacing its file. Cropping here is CSS-only and centred so the whole
     product stays centred and its top is not cut off.
     Recommended photo sizes for new shoots: main product image 3:2 (1500x1000, minimum
     1600px wide), gallery images 3:2, hero panorama about 21:9. Send originals uncropped —
     do not pre-crop before sending. */
  .card img.img-main,.prod-hero img.img-main{object-position:center}
  .card .pad{padding:18px 20px 20px;display:flex;flex-direction:column;gap:6px;flex:1}
  .card h4{margin:0;font-size:18.5px;font-weight:700;line-height:1.25}
  .card p{margin:0;color:var(--ink-3);font-size:14.5px;line-height:1.5}
  .card .go{margin-top:auto;padding-top:10px;font-weight:600;font-size:15px}
  a.card{color:var(--ink)}
  a.card:hover{text-decoration:none;border-color:var(--ink-3);box-shadow:var(--shadow)}
  @media (max-width:960px){.cards{grid-template-columns:repeat(2,1fr)}}
  @media (max-width:600px){.cards{grid-template-columns:1fr}.stats{grid-template-columns:1fr;gap:28px}}

  .adv{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
  .adv .card img{height:230px}
  .adv .card h4{font-size:21px}
  .adv .card p{font-size:15.5px;color:var(--ink-2)}
  @media (max-width:700px){.adv{grid-template-columns:1fr}}

  .news-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
  .news-grid figure{margin:0;border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);background:var(--bg-card)}
  .news-grid img{width:100%;height:250px;object-fit:cover;object-position:center}
  .news-grid figcaption{padding:16px 20px}
  .news-grid figcaption b{display:block;font-size:17px;margin-bottom:4px}
  .news-grid figcaption span{color:var(--ink-3);font-size:14.5px}
  @media (max-width:700px){.news-grid{grid-template-columns:1fr}}


  /* ---------- Standalone page head ---------- */
  .page-head{padding:34px 0 10px}
  .page-head h1{font-size:clamp(36px,4.6vw,54px);line-height:1.08;font-weight:800;letter-spacing:-.018em;margin:0 0 14px}
  .page-head .sub{font-size:20px;color:var(--ink-2);margin:0 0 14px;font-weight:550}
  .page-head p{color:var(--ink-2);margin:0 0 10px;max-width:760px}
  /* ---------- Certificates row (News) ---------- */
  .cert-row{display:grid;grid-template-columns:repeat(5,1fr);gap:18px;margin-top:22px}
  .cert-row .cert{border:1px solid var(--line);border-radius:var(--radius);background:var(--bg-card);padding:26px 16px;text-align:center}
  .cert-row .cert b{display:block;font-size:15.5px;line-height:1.35;margin-bottom:6px}
  .cert-row .cert span{color:var(--ink-3);font-size:13.5px;line-height:1.5}
  .cert-row a.cert{display:block;color:inherit;text-decoration:none}
  .cert-row a.cert img{width:100%;height:190px;object-fit:contain;background:#f2f2f2;border-radius:8px;margin-bottom:12px}
  .cert-row a.cert .view{color:var(--red);font-size:13px;font-weight:600}
  .cert-row a.cert:hover{border-color:var(--red)}
  @media (max-width:960px){.cert-row{grid-template-columns:repeat(3,1fr)}}
  @media (max-width:600px){.cert-row{grid-template-columns:repeat(2,1fr)}}
  /* ---------- News feed pagination ---------- */
  .pager{display:flex;gap:10px;align-items:center;justify-content:center;margin:36px 0 84px;flex-wrap:wrap}
  .pager button{border:1px solid var(--line);background:var(--bg-card);color:var(--ink);border-radius:999px;padding:9px 18px;font-weight:600;font-size:15px;cursor:pointer}
  .pager button:hover:not(:disabled){border-color:var(--ink-3)}
  .pager button:disabled{opacity:.45;cursor:default}
  .pager button.current{background:var(--red);border-color:var(--red);color:#fff}
  .pager .pager-count{color:var(--ink-3);font-size:14.5px}

  /* ---------- Product page ---------- */
  .crumbs{font-size:14px;color:var(--ink-3);padding:26px 0 0;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
  .crumbs a{color:var(--ink-2);font-weight:500}
  .crumbs .sep{color:var(--line)}
  .prod-hero{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center;padding:34px 0 70px}
  .prod-hero h1{font-size:clamp(36px,4.6vw,54px);line-height:1.08;font-weight:800;letter-spacing:-.018em;margin:0 0 14px}
  .prod-hero .sub{font-size:20px;color:var(--ink-2);margin:0 0 22px;font-weight:550}
  .prod-hero p{color:var(--ink-2);margin:0 0 26px;max-width:520px}
  .prod-hero img{width:100%;height:420px;object-fit:cover;object-position:center;border-radius:18px}
  /* Cutout product shots on a white background must show the whole tool —
     cover-cropping would clip its ends, so contain it on white instead. */
  .prod-hero img.cutout{object-fit:contain;background:#fff}
  .chips{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:28px}
  .chip{border:1px solid var(--line);border-radius:999px;padding:7px 14px;font-size:13.5px;font-weight:600;color:var(--ink-2);background:var(--bg-card)}
  @media (max-width:880px){.prod-hero{grid-template-columns:1fr;gap:28px}.prod-hero img{height:300px}}

  .spec-wrap{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:start}
  @media (max-width:880px){.spec-wrap{grid-template-columns:1fr;gap:40px}}
  .spec-wrap h3,.block h3{font-size:26px;font-weight:750;margin:0 0 16px;letter-spacing:-.01em}
  .spec-wrap p,.block p{color:var(--ink-2);margin:0 0 14px}
  table.spec{width:100%;border-collapse:collapse;font-size:15.5px}
  table.spec th,table.spec td{padding:12px 4px;border-bottom:1px solid var(--line);vertical-align:top}
  table.spec th{text-align:left;font-weight:600;color:var(--ink-3);width:42%;padding-right:16px}
  table.spec td{font-weight:600}
  table.spec td small{display:block;font-weight:400;color:var(--ink-3);margin-top:2px}
  /* Factory & Sales contact tables (About + Contact): contact values stay
     dark ink, not the site-wide red link colour — still clickable links.
     The two spec-wraps holding these tables are widened on the table side
     (see .contact-wrap below) and the label column is set wide with a
     generous right padding, so there is a clear gap between the labels
     and the values, while the widest value — the factory address — still
     fits on one line and ends close to the table's right edge. */
  table.spec.contact-table th{width:172px;white-space:nowrap;padding-right:38px}
  table.spec.contact-table a{color:var(--ink)}
  table.spec.contact-table a:hover{color:var(--ink)}
  /* Give the Factory & Sales column more of the row on wide screens: the
     table needs the extra width so the bigger label/value gap does not
     squeeze the value column and wrap the company name or the address. */
  @media (min-width:881px){
    .spec-wrap.contact-wrap{grid-template-columns:1.27fr 1fr}
  }
  /* The company name and the factory address never wrap while the table
     sits in the two-column layout; on narrow phones the table is
     full-width and they may wrap again rather than force sideways
     scrolling. */
  @media (min-width:600px){
    table.spec.contact-table td.company-name,
    table.spec.contact-table td.factory-address{white-space:nowrap}
  }
  /* On narrow phones the table is full-width: tighten the label column
     again so the values keep room to wrap without sideways scrolling. */
  @media (max-width:599px){
    table.spec.contact-table th{width:118px;padding-right:14px}
  }

  .pack-flow{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:8px}
  .pack-step{background:var(--bg-card);border:1px solid var(--line);border-radius:var(--radius);padding:20px}
  .pack-step b{display:block;font-size:27px;font-weight:800;letter-spacing:-.01em}
  .pack-step span{color:var(--ink-3);font-size:14.5px}
  .pack-step .mult{color:var(--red);font-weight:800;font-size:14px;letter-spacing:.08em}
  @media (max-width:700px){.pack-flow{grid-template-columns:1fr}}
  .facts{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:22px}
  .fact{background:var(--bg-soft);border-radius:var(--radius);padding:18px 20px}
  .fact b{display:block;font-size:14px;color:var(--ink-3);font-weight:600;margin-bottom:4px}
  .fact span{font-size:19px;font-weight:700}
  @media (max-width:520px){.facts{grid-template-columns:1fr}}

  /* ---------- Inquiry form ---------- */
  /* Full-bleed navy band: the SECTION is the band (edge-to-edge); the form
     inside keeps its normal centred width (.wrap, 1180px) — form NOT widened. */
  section[id^="inquiry-"]{background:var(--navy);padding:0;overflow:hidden}
  section[id^="inquiry-"] .wrap{padding-top:0;padding-bottom:0}
  /* White-seam fix (2026-11-27): WP wraps the [hengtong_inquiry] shortcode in a
     <p> whose default bottom margin collapses out of the padding-less navy
     section, showing a white strip between the form band and the footer on
     EVERY page. Kill the wrapper margin so the navy meets the footer directly. */
  section[id^="inquiry-"] p{margin:0}
  section[id^="inquiry-"] .inquiry{margin:0}
  .inquiry{background:var(--navy);color:#fff;border-radius:0;padding:24px clamp(20px,3vw,32px)}
  .inquiry h3{font-size:clamp(22px,2.6vw,28px);font-weight:800;letter-spacing:-.015em;margin:0 0 6px}
  .inquiry .intro{color:#c3d2e8;margin:0 0 16px;max-width:560px}
  .form-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto;gap:12px}
  .form-grid .field:nth-child(1){grid-column:1;grid-row:1}
  .form-grid .field:nth-child(2){grid-column:2;grid-row:1}
  .form-grid .field:nth-child(3){grid-column:1;grid-row:2}
  .form-grid .field:nth-child(4){grid-column:2;grid-row:2}
  .field{display:flex;flex-direction:column;gap:5px}
  .field.full{grid-column:1/-1;grid-row:3}
  .field label{font-size:14.5px;font-weight:600}
  .field label .req{color:#ff6a55;font-weight:800}
  .field label .opt{color:#93a9c9;font-weight:400}
  .field input,.field textarea{
    background:#fff;border:1px solid #33517c;border-radius:9px;color:#14181d;
    padding:9px 12px;font-size:16px;width:100%;
  }
  .field textarea{min-height:80px;resize:vertical}
  .field input:focus,.field textarea:focus{outline:3px solid rgba(255,255,255,.35);outline-offset:1px}
  @media (max-width:640px){.form-grid{grid-template-columns:1fr}.form-grid .field:nth-child(n){grid-column:auto;grid-row:auto}}
  .inquiry .send{margin-top:16px;width:100%;font-size:17px;padding:11px 26px}
  .inquiry .direct{margin:12px 0 0;text-align:center;color:#c3d2e8;font-size:15px}
  .inquiry .direct a{color:#fff;font-weight:700}
  .form-note{display:none;margin-top:10px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.3);border-radius:9px;padding:10px 14px;font-size:14.5px}
  .form-note.show{display:block}

  /* ---------- Footer ---------- */
  footer.site{background:var(--footer-bg);color:var(--footer-ink);padding:64px 0 40px;margin-top:0}
  .foot-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:44px}
  @media (max-width:820px){.foot-grid{grid-template-columns:1fr;gap:34px}}
  footer.site h5{margin:0 0 14px;font-size:13px;letter-spacing:.16em;color:var(--footer-ink-2);font-weight:700}
  footer.site p{margin:0 0 8px;color:var(--footer-ink-2);font-size:15px;line-height:1.6}
  footer.site a{color:var(--footer-ink)}
  .foot-logo{display:inline-block;background:transparent;margin-bottom:18px;line-height:0}
  .foot-logo img{height:54px;width:auto;display:block}
  .foot-brand p{max-width:340px}
  .social-row{display:flex;gap:10px;align-items:center}
  .social-row a{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;border:1px solid rgba(255,255,255,.28);color:var(--footer-ink);flex:none}
  .social-row a:hover{border-color:var(--red);color:#fff;background:var(--red);text-decoration:none}
  .social-row svg{width:20px;height:20px;display:block}
  .foot-social{margin-top:20px}
  .social-row--light a{width:36px;height:36px;border-color:var(--line);color:var(--ink-2)}
  .social-row--light a:hover{color:#fff}
  .social-row--light svg{width:18px;height:18px}
  .foot-links a{display:block;padding:6px 0;color:var(--footer-ink-2);font-size:15px}
  .foot-links a:hover{color:#fff}
  .foot-bottom{border-top:1px solid #262c33;margin-top:44px;padding-top:22px;display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;color:#7d848d;font-size:13.5px}
  .cards.also{grid-template-columns:repeat(2,1fr)}
  .card.noimg .pad{justify-content:center;min-height:190px}
  @media (max-width:600px){.cards.also{grid-template-columns:1fr}}
  .hidden-view{display:none !important}

  /* ---------- Inside the Factory (homepage) ---------- */
  .factory-lead{margin-bottom:18px}
  .factory-lead img{width:100%;height:340px;object-fit:cover;object-position:center;border-radius:var(--radius);border:1px solid var(--line)}
  /* Lead slot: a real still photo under the video, so the picture paints on
     every device even before (or entirely without) the video loading. */
  .factory-media{position:relative;width:100%;height:340px;border-radius:var(--radius);border:1px solid var(--line);overflow:hidden;background:#101c26}
  .factory-media img.factory-still{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;border:0;border-radius:0}
  .factory-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
  .factory-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
  .factory-grid img{width:100%;height:210px;object-fit:cover;object-position:center;border-radius:var(--radius);border:1px solid var(--line)}
  @media (max-width:880px){.factory-grid{grid-template-columns:repeat(2,1fr)}}
  @media (max-width:600px){.factory-lead img{height:230px}.factory-media{height:230px}.factory-media img.factory-still{height:100%}.factory-grid img{height:170px}}

  /* ---------- Product detail photos ---------- */
  .detail-fig{margin:22px 0 0}
  .detail-fig img{width:100%;height:250px;object-fit:cover;object-position:center;border-radius:var(--radius);border:1px solid var(--line)}
  .detail-fig.tall img{height:300px}
  /* Square product shots whose full shape must stay visible (Ground Staples
     U-staples): shrink the figure and show the whole frame — no cover-crop,
     so the complete U shape stays in view. Image files themselves untouched. */
  .detail-fig.show-full{max-width:400px;margin-left:auto;margin-right:auto}
  .detail-fig.show-full img{height:auto;aspect-ratio:1/1;object-fit:contain}
  .pack-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:22px}
  .pack-gallery img{width:100%;height:240px;object-fit:cover;object-position:center;border-radius:var(--radius);border:1px solid var(--line)}
  @media (max-width:700px){.pack-gallery{grid-template-columns:1fr}.pack-gallery img{height:230px}}

