/* ==========================================================================
   Opti Print — custom header (Variant C, approved mockup)
   Scoped under .optiprint-header to avoid clashing with parent theme / ACF CSS.
   ========================================================================== */

/* Shared tokens: drawer lives outside <header>, so vars must not be header-only. */
.optiprint-header,
.op-drawer,
.op-drawer-overlay,
.op-modal{
  --op-blue:#1A56D6;
  --op-deep-blue:#0B2C6B;
  --op-graphite:#2B2F38;
  --op-white:#FFFFFF;
  --op-accent:#FF7A29;
  --op-accent-hover:#e8691c;
  --op-border:#E3E8F0;
}
.optiprint-header{
  font-family:-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  background:linear-gradient(120deg,var(--op-deep-blue) 0%,var(--op-blue) 65%,#2f6fe0 100%);
  position:relative;
  z-index:100;
}
/* Printec leaves ~100px for a fixed header; our header is in normal flow. */
body .site-content,
#content.site-content{
  margin-top:0 !important;
  padding-top:0 !important;
  margin-bottom:0 !important;
  padding-bottom:0 !important;
}
body .site,
body #page{
  margin-bottom:0 !important;
  padding-bottom:0 !important;
}
.optiprint-header *{box-sizing:border-box;}
.optiprint-header a{text-decoration:none;color:inherit;}
.optiprint-header ul{list-style:none;margin:0;padding:0;}
.optiprint-header .op-wrap{max-width:1280px;margin:0 auto;padding:0 24px;}

/* ---------- test-mode notice (above topbar) ---------- */
.optiprint-header .op-test-notice{
  background:#FFF4E5;
  color:#5C3D11;
  border-bottom:1px solid #F0D4A8;
  font-size:13px;
  line-height:1.4;
  text-align:center;
}
.optiprint-header .op-test-notice__toggle{
  display:none;
  width:100%;
  appearance:none;border:0;background:transparent;
  color:#5C3D11;cursor:pointer;
  font:inherit;font-size:12px;font-weight:800;
  letter-spacing:.02em;
  padding:7px 12px;
  align-items:center;justify-content:center;gap:6px;
}
.optiprint-header .op-test-notice__chevron{flex:none;transition:transform .18s ease}
.optiprint-header .op-test-notice.is-open .op-test-notice__chevron{transform:rotate(180deg)}
.optiprint-header .op-test-notice__panel .op-wrap{
  padding-top:8px;
  padding-bottom:8px;
}
.optiprint-header .op-test-notice__kicker{
  display:none;
  margin:0 0 4px;
  font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
  color:#8A5A16;
}
.optiprint-header .op-test-notice__text{
  margin:0;
  max-width:72rem;
  margin-inline:auto;
}
.optiprint-header .op-test-notice__link{
  color:#0B2C6B;
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:2px;
}
.optiprint-header .op-test-notice__link:hover{
  color:var(--op-blue);
}
.optiprint-header .op-test-notice__collapse{display:none}

/* ---------- topbar ---------- */
.optiprint-header .op-topbar{border-bottom:1px solid rgba(255,255,255,.14);}
.optiprint-header .op-topbar .op-wrap{display:flex;justify-content:space-between;align-items:center;height:38px;font-size:12.5px;color:#cfe0ff;flex-wrap:wrap;}
.optiprint-header .op-topbar .op-info{display:flex;gap:20px;}
.optiprint-header .op-topbar .op-info span{display:flex;align-items:center;gap:6px;white-space:nowrap;}
.optiprint-header .op-social{display:flex;gap:10px;}
.optiprint-header .op-social a,
a.op-social-link{
  width:30px;height:30px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;transition:.15s;
  border:1.5px solid rgba(255,255,255,.6);flex:none;
}
/* Hover lift only for real pointers — on touch :hover sticks and the icon jumps up. */
@media (hover:hover) and (pointer:fine){
  .optiprint-header .op-social a:hover,
  a.op-social-link:hover{border-color:#fff;transform:translateY(-2px);}
}
/* Stroke SVGs have hollow hit-areas — clicks must land on the <a>. */
.optiprint-header .op-social a svg,
.op-drawer-foot .op-social a svg,
.op-mobile-social a svg,
a.op-social-link svg{pointer-events:none;}

/* ---------- main row ---------- */
.optiprint-header .op-mainrow .op-wrap{
  display:flex;align-items:center;justify-content:flex-start;gap:26px;height:96px;
}
.optiprint-header .op-mainrow .op-wrap > *{
  align-self:center !important;margin-top:0 !important;margin-bottom:0 !important;
}
.optiprint-header .op-logo{display:flex;align-items:center;flex:none;}
.optiprint-header .op-logo img{display:block;height:50px;width:auto;filter:brightness(0) invert(1);}

.optiprint-header .op-phone-icon{
  width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.16);
  display:flex;align-items:center;justify-content:center;flex:none;
}
.optiprint-header .op-phone-icon svg{width:19px;height:19px;stroke:#fff;}
.optiprint-header .op-phones-row{display:flex;align-items:center;gap:12px;}

.optiprint-header .op-hamburger{
  display:none;background:rgba(255,255,255,.16);border:none;border-radius:10px;
  width:42px;height:42px;padding:0;margin:0;box-sizing:border-box;
  align-items:center;justify-content:center;cursor:pointer;flex:none;
}
.optiprint-header .op-hamburger svg{width:22px;height:22px;stroke:#fff;}
.optiprint-header .op-mobile-actions{display:none;align-items:center;gap:10px;flex:none;margin-left:auto;}
.optiprint-header .op-icon-btn{
  width:42px;height:42px;padding:0;margin:0;box-sizing:border-box;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.16);border:none;cursor:pointer;flex:none;
}
.optiprint-header .op-icon-btn svg{width:19px;height:19px;stroke:#fff;}
.optiprint-header .op-icon-btn.op-call{background:var(--op-accent);}

.optiprint-header .op-mobile-social{display:none;}
.optiprint-header .op-mobile-social .op-wrap{display:flex;justify-content:center;gap:12px;padding:2px 16px 14px;}
.optiprint-header .op-mobile-social a{
  width:28px;height:28px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  border:1.5px solid rgba(255,255,255,.6);
}
.optiprint-header .op-mobile-social svg{width:14px;height:14px;}

/* ---------- search (header + mobile drawer) ---------- */
.op-search{
  flex:1 1 auto;display:flex;align-items:center;background:#fff;
  border-radius:999px;height:54px;min-height:54px;padding:0 6px 0 18px;
  box-shadow:0 8px 24px rgba(11,44,107,.25);overflow:hidden;box-sizing:border-box;
}
.op-search form,
.op-search .optiprint-search-form{
  display:flex;align-items:center;width:100%;height:100%;margin:0;gap:0;position:relative;
}
/* screen-reader label must NOT participate in flex (it was pushing field/button up) */
.op-search .screen-reader-text,
.op-search label.screen-reader-text{
  position:absolute !important;width:1px !important;height:1px !important;
  padding:0 !important;margin:-1px !important;overflow:hidden !important;
  clip:rect(0,0,0,0) !important;white-space:nowrap !important;border:0 !important;
  flex:none !important;display:block !important;
}
.op-search .search-field{
  flex:1 1 auto;min-width:0;border:none !important;outline:none;font-size:14px;
  color:#2B2F38 !important;-webkit-text-fill-color:#2B2F38 !important;
  caret-color:#2B2F38;background:#fff !important;
  height:42px !important;min-height:42px !important;max-height:42px !important;
  padding:0 10px 0 0 !important;margin:0 !important;align-self:center;
  -webkit-appearance:none;-moz-appearance:none;appearance:none;box-sizing:border-box;
  display:block !important;line-height:42px !important;box-shadow:none !important;
}
/* Native type=search chrome (results/filter glyph) — hide if type stays search. */
.op-search .search-field::-webkit-search-decoration,
.op-search .search-field::-webkit-search-cancel-button,
.op-search .search-field::-webkit-search-results-button,
.op-search .search-field::-webkit-search-results-decoration{
  -webkit-appearance:none !important;appearance:none !important;
  display:none !important;width:0 !important;height:0 !important;margin:0 !important;padding:0 !important;
}
.op-search .search-field::placeholder{
  line-height:42px;color:#8b95a7 !important;-webkit-text-fill-color:#8b95a7 !important;
  opacity:1;position:relative;top:0;
}
.op-search .search-field:-webkit-autofill,
.op-search .search-field:-webkit-autofill:hover,
.op-search .search-field:-webkit-autofill:focus{
  -webkit-text-fill-color:#2B2F38 !important;
  box-shadow:0 0 0 1000px #fff inset !important;
}
.op-search button,
.op-search input[type="submit"]{
  height:42px !important;min-height:42px !important;padding:0 18px !important;border:none !important;
  border-radius:999px !important;background:var(--op-accent) !important;color:#fff !important;
  font-weight:700;cursor:pointer;font-size:14px;line-height:1 !important;
  display:inline-flex !important;align-items:center;justify-content:center;gap:6px;white-space:nowrap;
  align-self:center !important;margin:0 !important;flex:0 0 auto;box-shadow:none !important;
  -webkit-appearance:none;appearance:none;
}

/* ---------- phone + CTA ---------- */
.optiprint-header .op-phone-cta{
  display:flex;align-items:center;gap:16px;flex:none;
  align-self:center !important;height:54px;
}
.optiprint-header .op-phones{text-align:right;line-height:1.25;}
.optiprint-header .op-phones a{
  display:block;font-weight:700;font-size:15px;color:#fff;line-height:1.3;
  margin:0 !important;padding:0 !important;background:none !important;border:none !important;
}
.optiprint-header .op-cta{
  display:inline-flex !important;align-items:center;justify-content:center;
  background:var(--op-accent) !important;color:#fff !important;
  border:2px solid rgba(255,255,255,.4) !important;
  border-radius:999px !important;padding:12px 22px !important;
  font-weight:700;font-size:14px;cursor:pointer;line-height:1.2 !important;
  white-space:nowrap;transition:.15s;height:auto !important;min-height:0 !important;
  margin:0 !important;box-shadow:none !important;align-self:center !important;
  -webkit-appearance:none;appearance:none;
}
.optiprint-header .op-cta:hover{
  background:var(--op-accent-hover) !important;color:#fff !important;
}

/* ---------- header cart ---------- */
.optiprint-header .op-header-cart{
  display:flex;align-items:center;flex:none;align-self:center;height:54px;
}
.optiprint-header .op-header-cart .site-header-cart{
  position:relative;margin:0;padding:0;list-style:none;
}
.optiprint-header .op-header-cart .cart-contents{
  position:relative;
  display:inline-flex !important;align-items:center;justify-content:center;
  width:48px;height:48px;border-radius:50%;
  background:rgba(255,255,255,.16);color:#fff !important;
  text-decoration:none !important;font-size:0 !important;line-height:0 !important;
  border:1.5px solid rgba(255,255,255,.35);
  transition:background .15s, border-color .15s;
}
.optiprint-header .op-header-cart .cart-contents:hover{
  background:rgba(255,255,255,.28);border-color:rgba(255,255,255,.55);
}
.optiprint-header .op-header-cart .cart-contents::before{
  content:"";
  width:22px;height:22px;
  background:center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
}
.optiprint-header .op-header-cart .cart-contents .amount,
.optiprint-header .op-header-cart .cart-contents .woocommerce-Price-amount{
  display:none !important;
}
.optiprint-header .op-header-cart .cart-contents .count{
  position:absolute;top:-2px;right:-2px;
  min-width:18px;height:18px;padding:0 5px;border-radius:999px;
  background:var(--op-accent);color:#fff;font-size:11px;font-weight:700;
  display:inline-flex;align-items:center;justify-content:center;line-height:1;
  box-shadow:0 0 0 2px rgba(11,44,107,.35);
}
.optiprint-header .op-cart-mobile{position:relative;}
.optiprint-header .op-cart-count{
  position:absolute;top:-2px;right:-2px;
  min-width:18px;height:18px;padding:0 5px;border-radius:999px;
  background:var(--op-accent);color:#fff;font-size:11px;font-weight:700;
  display:inline-flex;align-items:center;justify-content:center;line-height:1;
}

/* ---------- navbar / catalog menu ---------- */
.optiprint-header .op-navbar{background:rgba(0,0,0,.16);}
.optiprint-header .op-navbar .op-wrap{position:relative;display:flex;align-items:center;gap:28px;height:50px;}
.optiprint-header .op-catalog-label{
  display:flex;align-items:center;gap:8px;flex:none;height:50px;margin:0;padding:0;
  color:#fff !important;font:inherit;font-weight:700;font-size:14px;white-space:nowrap;
  background:transparent !important;border:0 !important;border-radius:0 !important;
  box-shadow:none !important;cursor:pointer;-webkit-appearance:none;appearance:none;
}
.optiprint-header .op-catalog-label__chev{transition:transform .18s ease;}
.optiprint-header .op-navbar.op-mega-open .op-catalog-label__chev{transform:rotate(180deg);}

.optiprint-header .op-primary-menu{display:flex;gap:6px;flex-wrap:wrap;}
.optiprint-header .op-primary-menu > li{position:relative;}
.optiprint-header .op-primary-menu > li > a{
  display:flex;align-items:center;gap:4px;color:#dbe6ff;font-size:13.5px;padding:0 6px;height:50px;
}
.optiprint-header .op-primary-menu > li > a:hover,
.optiprint-header .op-primary-menu > li.op-open > a{color:#fff;}
.optiprint-header .op-primary-menu .sub-menu{
  display:none;position:absolute;top:100%;left:0;min-width:240px;background:#fff;
  border-radius:0 0 12px 12px;box-shadow:0 16px 32px rgba(11,44,107,.25);padding:8px;z-index:200;
}
.optiprint-header .op-primary-menu li:hover > .sub-menu,
.optiprint-header .op-primary-menu li.op-open > .sub-menu{display:block;}
.optiprint-header .op-primary-menu .sub-menu > li{position:relative;}
.optiprint-header .op-primary-menu .sub-menu li a{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:9px 14px;border-radius:8px;color:var(--op-graphite);font-size:13.5px;
}
.optiprint-header .op-primary-menu .sub-menu li a:hover{background:#f0f4ff;color:var(--op-blue);}
.optiprint-header .op-primary-menu .sub-menu .menu-item-has-children > a::after{
  content:"";flex:none;width:6px;height:6px;border-right:2px solid currentColor;border-top:2px solid currentColor;
  transform:rotate(45deg);opacity:.55;
}
.optiprint-header .op-primary-menu .sub-menu .sub-menu{
  top:0;left:100%;margin-left:4px;border-radius:12px;z-index:210;
}

/* ---------- hybrid catalog mega menu ---------- */
.optiprint-header .op-mega[hidden]{display:none !important;}
.optiprint-header .op-mega{
  position:absolute;top:100%;left:24px;right:24px;z-index:260;
  display:grid;grid-template-columns:230px 210px minmax(330px,1fr) 250px;
  height:min(570px,calc(100vh - 190px));min-height:430px;
  overflow:hidden;background:#fff;color:var(--op-graphite);
  border:1px solid rgba(26,86,214,.12);border-radius:0 0 18px 18px;
  box-shadow:0 24px 54px rgba(11,44,107,.28);
}
.optiprint-header .op-mega::before{
  content:"";position:absolute;left:0;right:0;top:-8px;height:8px;
}
.optiprint-header .op-mega__label{
  margin:0 0 10px;font-size:10px;font-weight:800;letter-spacing:.1em;
  text-transform:uppercase;color:#8190a5;
}
.optiprint-header .op-mega__roots,
.optiprint-header .op-mega__subs,
.optiprint-header .op-mega__products,
.optiprint-header .op-mega__preview{
  min-width:0;min-height:0;padding:20px;
}
.optiprint-header .op-mega__roots{
  display:flex;flex-direction:column;background:#f3f7ff;border-right:1px solid #e3eaf5;
}
.optiprint-header .op-mega__root{
  width:100%;min-height:44px;margin:0 0 6px;padding:10px 11px;
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  border:0 !important;border-radius:10px !important;background:transparent !important;
  color:var(--op-deep-blue) !important;font:inherit;font-size:13.5px;font-weight:750;
  text-align:left;box-shadow:none !important;cursor:pointer;
  white-space:nowrap;
}
.optiprint-header .op-mega__root svg,
.optiprint-header .op-mega__sub svg{
  flex:none;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;
}
.optiprint-header .op-mega__root:hover,
.optiprint-header .op-mega__root:focus-visible,
.optiprint-header .op-mega__root.is-active{
  background:var(--op-blue) !important;color:#fff !important;outline:none;
}
.optiprint-header .op-mega__all{
  margin-top:auto;padding:11px 10px;border-top:1px solid #dbe5f4;
  color:var(--op-blue) !important;font-size:13px;font-weight:800;
}

.optiprint-header .op-mega__subs{
  overflow-y:auto;background:#fff;border-right:1px solid #e8edf5;
}
.optiprint-header .op-mega__subs [hidden]{display:none !important;}
.optiprint-header .op-mega__sub{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  min-height:40px;margin:0 0 5px;padding:9px 10px;border-radius:9px;
  color:#3b4658 !important;font-size:13px;font-weight:650;line-height:1.25;
}
.optiprint-header .op-mega__sub:hover,
.optiprint-header .op-mega__sub:focus-visible,
.optiprint-header .op-mega__sub.is-active{
  background:#edf3ff;color:var(--op-blue) !important;outline:none;
}

.optiprint-header .op-mega__products{
  overflow-y:auto;padding:20px 22px;
}
.optiprint-header .op-mega__products > section[hidden]{display:none !important;}
.optiprint-header .op-mega__products-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:16px;
  margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #e8edf5;
}
.optiprint-header .op-mega__products-head .op-mega__label{margin-bottom:3px;}
.optiprint-header .op-mega__products-head h3{
  margin:0;color:var(--op-deep-blue);font-size:21px;line-height:1.15;
}
.optiprint-header .op-mega__products-head > a{
  flex:none;color:var(--op-blue) !important;font-size:12px;font-weight:750;
}
.optiprint-header .op-mega__product-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;
}
.optiprint-header .op-mega__section-label{
  grid-column:1 / -1;
  margin:6px 0 0;
  padding:0 2px;
  color:#9aa3b2;
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  line-height:1.2;
}
.optiprint-header .op-mega__section-label:first-child{margin-top:0;}
.optiprint-header .op-mega__group,
.optiprint-header .op-mega__product-card{
  min-width:0;padding:12px;border:1px solid #e4eaf4;border-radius:12px;background:#fafcff;
}
.optiprint-header .op-mega__group-title{
  display:block;margin-bottom:7px;color:var(--op-deep-blue) !important;
  font-size:13px;font-weight:850;
}
.optiprint-header .op-mega__group ul{margin:0;padding:0;list-style:none;}
.optiprint-header .op-mega__group li + li{margin-top:2px;}
.optiprint-header .op-mega__group li a{
  display:block;padding:5px 6px;border-radius:6px;
  color:#526076 !important;font-size:12px;line-height:1.3;
}
.optiprint-header .op-mega__group li a:hover,
.optiprint-header .op-mega__group li a:focus-visible{
  background:#eaf1ff;color:var(--op-blue) !important;outline:none;
}
.optiprint-header .op-mega__product-card{
  display:flex;flex-direction:column;gap:5px;color:inherit !important;
}
.optiprint-header .op-mega__product-card:hover,
.optiprint-header .op-mega__product-card:focus-visible{
  border-color:rgba(26,86,214,.4);background:#f3f7ff;outline:none;
}
.optiprint-header .op-mega__product-card strong{color:var(--op-deep-blue);font-size:13px;}
.optiprint-header .op-mega__product-card span{color:#6f7b8d;font-size:11.5px;line-height:1.35;}
.optiprint-header .op-mega__product-card--compact{
  padding:9px 12px;gap:0;justify-content:center;
}
.optiprint-header .op-mega__product-card--compact strong{
  font-size:12.5px;line-height:1.25;
}

.optiprint-header .op-mega__preview{
  display:flex;flex-direction:column;background:#f6f9ff;border-left:1px solid #e3eaf5;
}
.optiprint-header .op-mega__preview-media{
  aspect-ratio:4 / 3;margin-bottom:14px;overflow:hidden;border-radius:13px;
  background:#e9f0fb;
}
.optiprint-header .op-mega__preview-media img{
  display:block;width:100%;height:100%;object-fit:cover;
}
.optiprint-header .op-mega__preview-kicker{
  margin:0 0 5px;color:var(--op-blue);font-size:10px;font-weight:850;
  letter-spacing:.08em;text-transform:uppercase;
}
.optiprint-header .op-mega__preview > strong{
  color:var(--op-deep-blue);font-size:18px;line-height:1.2;
}
.optiprint-header .op-mega__preview > span{
  margin-top:7px;color:#68758a;font-size:12.5px;line-height:1.45;
}
.optiprint-header .op-mega__preview > a{
  align-self:flex-start;margin-top:auto;padding:10px 14px;border-radius:999px;
  background:var(--op-accent);color:#fff !important;font-size:12.5px;font-weight:800;
}

@media (max-width:1100px) and (min-width:901px){
  .optiprint-header .op-mega{
    grid-template-columns:210px 180px minmax(290px,1fr) 210px;
  }
  .optiprint-header .op-mega__roots,
  .optiprint-header .op-mega__subs,
  .optiprint-header .op-mega__products,
  .optiprint-header .op-mega__preview{padding:16px;}
}

.optiprint-header .op-pages{
  margin-left:auto;display:flex;align-items:center;align-self:stretch;gap:22px;flex:none;height:50px;
}
.optiprint-header .op-pages a{
  display:inline-flex;align-items:center;height:50px;color:#bcd4ff;font-size:13px;white-space:nowrap;
  margin:0;padding:0;line-height:1;
}
.optiprint-header .op-pages a:hover{color:#fff;}

/* ---------- mobile off-canvas drawer ---------- */
.op-drawer-overlay{
  position:fixed;inset:0;background:rgba(11,20,40,.55);z-index:2100;opacity:0;
  visibility:hidden;transition:opacity .2s;
}
.op-drawer-overlay.op-active{opacity:1;visibility:visible;}
.op-drawer{
  position:fixed;top:0;left:0;height:100%;width:min(92vw,380px);max-width:380px;
  background:var(--op-deep-blue,#0B2C6B);z-index:2101;transform:translateX(-100%);
  transition:transform .25s ease;display:flex;flex-direction:column;overflow:hidden;
  font-family:-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:#fff;
}
.op-drawer.op-active{transform:translateX(0);}
.op-drawer-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 14px 12px;border-bottom:1px solid rgba(255,255,255,.14);flex:none;
}
.op-drawer-logo{display:flex;align-items:center;min-width:0;}
.op-drawer-head img{height:34px;width:auto;filter:brightness(0) invert(1);display:block;}
.op-drawer-logo strong{color:#fff;font-size:18px;font-weight:800;}
.op-drawer-close{
  flex:none;width:40px;height:40px;border-radius:50%;border:none;cursor:pointer;
  background:var(--op-accent,#FF7A29) !important;color:#fff !important;
  display:inline-flex !important;align-items:center;justify-content:center;
  box-shadow:0 6px 14px rgba(0,0,0,.22);line-height:1;padding:0;
}
.op-drawer-close span{
  display:block;font-size:28px;font-weight:700;line-height:1;margin-top:-2px;pointer-events:none;
}
.op-drawer-search{padding:12px 14px;flex:none;}
.op-drawer-search .op-search{
  box-shadow:none;height:48px;min-height:48px;width:100%;
  border:1px solid rgba(255,255,255,.22);
}
.op-drawer-search .op-search .search-field{
  height:36px !important;min-height:36px !important;max-height:36px !important;line-height:36px !important;
}
.op-drawer-search .op-search button,
.op-drawer-search .op-search input[type="submit"]{
  height:36px !important;min-height:36px !important;padding:0 14px !important;font-size:13px;
}
.op-drawer-nav{
  padding:4px 8px 10px;flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch;
}
.op-drawer-catalog{
  display:block;padding:12px 10px 10px;color:#fff;font-weight:800;font-size:15px;
}
.op-drawer-nav ul,
.op-drawer-menu{list-style:none;margin:0;padding:0;}
.op-drawer-nav > ul > li,
.op-drawer-menu > li{border-bottom:1px solid rgba(255,255,255,.1);}
.op-drawer-row{
  display:flex;align-items:center;gap:0;min-height:44px;
}
.op-drawer-row > a{
  flex:1 1 auto;display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:11px 6px 11px 10px;color:#eef3ff;font-size:15px;font-weight:600;min-width:0;
}
.op-drawer-row > a span{min-width:0;}
.op-drawer-go{flex:none;width:14px;height:14px;opacity:.65;stroke:#9ec0ff;}
.op-drawer-nav .sub-menu{
  display:none;padding:4px 0 8px 10px;margin:0 0 6px;
  background:rgba(0,0,0,.16);border-radius:10px;
}
.op-drawer-nav li.op-open > .sub-menu{display:block;}
.op-drawer-nav .sub-menu .op-drawer-row > a{
  font-size:14px;font-weight:500;color:#d7e4ff;padding:10px 6px 10px 10px;
}
.op-drawer-nav .op-toggle{
  flex:0 0 34px;width:34px;min-width:34px;height:34px;margin-right:6px;
  border:none;border-radius:8px;background:rgba(255,255,255,.1);color:#fff;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;padding:0;
}
.op-drawer-nav .op-toggle svg{display:block;width:14px;height:14px;transition:transform .18s ease;}
.op-drawer-nav li.op-open > .op-drawer-row > .op-toggle{
  background:rgba(255,122,41,.28);color:#fff;
}
.op-drawer-nav li.op-open > .op-drawer-row > .op-toggle svg{transform:rotate(180deg);}
.op-drawer-foot{
  position:relative;padding:12px 14px 10px;border-top:1px solid rgba(255,255,255,.14);flex:none;
}
.op-drawer-foot__toggle{
  position:absolute;top:8px;right:10px;z-index:2;
  width:34px;height:34px;padding:0;margin:0;
  display:inline-flex;align-items:center;justify-content:center;
  border:none;border-radius:10px;cursor:pointer;
  background:rgba(255,255,255,.12);color:#fff;
  -webkit-appearance:none;appearance:none;
}
.op-drawer-foot__toggle:focus-visible{
  outline:2px solid var(--op-accent,#FF7A29);outline-offset:2px;
}
.op-drawer-foot__chev{
  display:block;width:18px;height:18px;transition:transform .2s ease;
}
/* Expanded: chevron ↓ (згорнути). Collapsed: chevron ↑ (розгорнути). */
.op-drawer-foot.is-collapsed .op-drawer-foot__chev{transform:rotate(180deg);}
.op-drawer-foot.is-collapsed{
  display:flex;justify-content:flex-end;align-items:center;
  min-height:0;padding:8px 10px;
}
.op-drawer-foot.is-collapsed .op-drawer-foot__body{display:none;}
.op-drawer-foot.is-collapsed .op-drawer-foot__toggle{
  position:static;
}
.op-drawer-foot .op-phones{padding-right:40px;}
.op-drawer-foot .op-phones a{color:#fff;font-weight:700;font-size:15px;display:block;margin-bottom:6px;}
.op-drawer-foot .op-info span{display:flex;gap:6px;align-items:center;color:#bcd4ff;font-size:13px;margin-bottom:6px;}
.op-drawer-foot .op-social{
  margin-top:12px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;width:100%;
}
.op-drawer-foot .op-social a{
  width:100% !important;height:48px !important;min-height:48px;border-radius:12px !important;
  display:flex !important;align-items:center;justify-content:center;
  border:1.5px solid rgba(255,255,255,.35) !important;box-sizing:border-box;
}
.op-drawer-foot .op-social svg{
  width:22px !important;height:22px !important;display:block;
}
.op-drawer-actions{
  flex:none;display:grid;grid-template-columns:1fr 1fr;gap:0;
  border-top:1px solid rgba(255,255,255,.16);
  background:linear-gradient(135deg,#0B2C6B 0%,#1A56D6 100%);
  padding-bottom:env(safe-area-inset-bottom,0);
}
.op-drawer-action{
  display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;
  min-height:48px;padding:8px 10px;border:none;background:transparent;color:#fff !important;
  font:inherit;font-size:13px;font-weight:700;text-decoration:none !important;cursor:pointer;
}
.op-drawer-action + .op-drawer-action{border-left:1px solid rgba(255,255,255,.18);}
.op-drawer-action:hover,
.op-drawer-action:focus-visible{background:rgba(255,255,255,.08);outline:none;}
.op-drawer-action svg{display:block;width:20px;height:20px;flex:none;}
.op-drawer-action__cart{position:relative;display:inline-flex;}
.op-drawer-action__count{
  position:absolute;top:-6px;right:-10px;min-width:18px;height:18px;padding:0 5px;
  border-radius:999px;background:var(--op-accent,#FF7A29);color:#fff;
  font-size:11px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;
  font-style:normal;
}

/* ---------- callback modal ---------- */
.op-modal-overlay{
  --op-blue:#1A56D6;--op-deep-blue:#0B2C6B;--op-graphite:#2B2F38;--op-accent:#FF7A29;--op-accent-hover:#e8691c;--op-border:#E3E8F0;
  position:fixed;inset:0;background:rgba(11,44,107,.62);z-index:1998;opacity:0;visibility:hidden;
  transition:opacity .2s;display:flex;align-items:center;justify-content:center;padding:20px;
  backdrop-filter:blur(2px);
}
.op-modal-overlay.op-active{opacity:1;visibility:visible;}
.op-modal{
  background:#fff;border-radius:16px;max-width:400px;width:100%;padding:0;position:relative;
  box-shadow:0 22px 50px rgba(11,44,107,.32);overflow:hidden;
  border:1px solid rgba(26,86,214,.18);
}
.op-modal__head{
  padding:18px 44px 12px 20px;
  background:linear-gradient(135deg,#0B2C6B 0%,#1A56D6 100%);
  color:#fff;
}
.op-modal__badge{display:none;}
.op-modal h3,
.op-modal__head h3{margin:0 0 4px;color:#fff;font-size:18px;line-height:1.25;font-weight:800;font-family:-apple-system,"Segoe UI",Roboto,Arial,sans-serif;}
.op-modal p.op-modal-sub{margin:0;color:rgba(255,255,255,.85);font-size:12.5px;line-height:1.35;}
.op-modal__body{padding:14px 20px 16px;background:linear-gradient(180deg,#fff 0%,#f5f8ff 100%);}
.op-modal-close{
  position:absolute;top:10px;right:10px;width:30px;height:30px;border-radius:50%;
  border:2px solid rgba(255,255,255,.85);background:#FF7A29;color:#fff;cursor:pointer;
  display:flex;align-items:center;justify-content:center;z-index:5;
  box-shadow:0 4px 12px rgba(11,44,107,.25);transition:background .15s,transform .15s;
  line-height:1;padding:0;
}
.op-modal-close span{
  display:block;font-size:22px;font-weight:700;line-height:1;margin-top:-1px;pointer-events:none;
}
.op-modal-close:hover{background:#e8691c;transform:scale(1.05);}
.op-modal .wpcf7-form-control-wrap{display:block;margin:0;}
.op-modal .cf7-callback-row{display:grid;gap:8px;}
.op-modal .cf7-callback-row label{
  display:block;font-size:12px;color:var(--op-graphite);margin:0;font-weight:700;
}
.op-modal .cf7-callback-row label .op-optional,
.op-modal .cf7-callback-row .op-optional{font-weight:500;color:#7a8494;}
.op-modal .cf7-callback-row input[type="text"],
.op-modal .cf7-callback-row input[type="tel"],
.op-modal .cf7-callback-row textarea{
  width:100%;margin-top:4px;padding:9px 12px;border:1.5px solid #c9d6ef;border-radius:10px;
  font-size:13px;font-weight:400;background:#fff;color:var(--op-graphite);
  box-shadow:none;transition:border-color .15s,box-shadow .15s;
}
.op-modal .cf7-callback-row textarea{min-height:56px;max-height:96px;resize:vertical;line-height:1.35;}
.op-modal .cf7-callback-row input:focus,
.op-modal .cf7-callback-row textarea:focus{
  outline:none;border-color:var(--op-blue);box-shadow:0 0 0 2px rgba(26,86,214,.14);
}
.op-modal .cf7-callback-row input[type="submit"],
.op-modal input.wpcf7-submit,
.op-modal input.wpcf7-form-control.wpcf7-submit{
  width:100% !important;margin-top:2px;
  background:linear-gradient(135deg,#FF7A29 0%,#ff934d 100%) !important;
  background-color:#FF7A29 !important;
  color:#fff !important;border:none !important;border-radius:999px !important;
  padding:11px !important;font-weight:800;font-size:14px;cursor:pointer;
  box-shadow:0 8px 16px rgba(255,122,41,.24) !important;
  transition:filter .15s,transform .15s;
}
.op-modal .cf7-callback-row input[type="submit"]:hover,
.op-modal input.wpcf7-submit:hover{
  background:linear-gradient(135deg,#e8691c 0%,#FF7A29 100%) !important;
  background-color:#e8691c !important;filter:brightness(1.02);transform:translateY(-1px);
}
.op-modal .wpcf7-not-valid-tip{font-size:12px;color:#c2410c;margin-top:4px;}
.op-modal .wpcf7-response-output{
  margin:12px 0 0;border-radius:12px;font-size:13px;padding:10px 14px;border-width:1px;
}
.op-modal .wpcf7 form.sent .wpcf7-response-output{
  background:rgba(26,86,214,.08);border-color:rgba(26,86,214,.25);color:#0B2C6B;
}

/* ---------- responsive ---------- */
/*
 * Touch / fold / tablet chrome:
 * Honor Magic V2 (and similar folds) report ~900–1300 CSS px when unfolded,
 * so the old 640px mobile header left them on a broken “desktop” layout:
 * crushed search pill, no hamburger, navbar often gone or below fold.
 * Use drawer chrome below 1100px, and also for coarse/no-hover viewports up to 1400px.
 */
@media (max-width:1100px){
  .optiprint-header .op-pages{display:none;}
  .optiprint-header .op-navbar{display:none;}
}
@media (max-width:1100px), ((hover: none) and (max-width: 1400px)){
  /* fixed: EHF #masthead + body overflow-x break sticky */
  .ehf-header #masthead.optiprint-header,
  header#masthead.site-header.optiprint-header{
    position:fixed !important;top:0;left:0;right:0;width:100%;
    z-index:1200;box-shadow:0 8px 22px rgba(11,44,107,.18);
    transition:box-shadow .2s ease;
  }
  body{padding-top:var(--op-mobile-header-h,100px);}
  .optiprint-header .op-test-notice{font-size:12px;line-height:1.35;}
  .optiprint-header .op-test-notice__toggle{display:flex;}
  .optiprint-header .op-test-notice__panel[hidden]{display:none!important}
  .optiprint-header .op-test-notice__panel .op-wrap{padding:0 10px 8px;}
  .optiprint-header .op-test-notice__card{
    text-align:left;
    background:#fff;
    border:1px solid #F0D4A8;
    border-radius:12px;
    padding:10px 12px;
    box-shadow:0 6px 16px rgba(92,61,17,.08);
  }
  .optiprint-header .op-test-notice__kicker{display:block;}
  .optiprint-header .op-test-notice__collapse{
    display:inline-flex;margin-top:8px;padding:0;
    appearance:none;border:0;background:transparent;
    color:#0B2C6B;font:inherit;font-size:12px;font-weight:700;
    text-decoration:underline;text-underline-offset:2px;cursor:pointer;
  }
  .optiprint-header .op-topbar{display:none;}
  .optiprint-header .op-navbar{display:none;}
  .optiprint-header .op-mobile-social{
    display:block;
    max-height:56px;
    opacity:1;
    overflow:hidden;
    transition:max-height .22s ease,opacity .18s ease,padding .22s ease;
  }
  .optiprint-header .op-mainrow .op-wrap{
    height:auto;padding:12px 12px 6px;gap:8px;
    transition:padding .2s ease;
  }
  .optiprint-header .op-logo img{height:32px;transition:height .2s ease;}
  .optiprint-header .op-hamburger,
  .optiprint-header .op-icon-btn{width:38px;height:38px;transition:width .2s ease,height .2s ease;}
  .optiprint-header .op-mobile-actions{gap:8px;display:flex;}
  .optiprint-header .op-search{display:none;}
  .optiprint-header .op-phone-cta{display:none;}
  .optiprint-header .op-header-cart{display:none;}
  .optiprint-header .op-hamburger{display:flex;}

  /* Compact on scroll: keep logo/actions, hide social row (still in drawer). */
  .optiprint-header.is-compact .op-mobile-social{
    max-height:0;opacity:0;padding-top:0;padding-bottom:0;pointer-events:none;
  }
  .optiprint-header.is-compact .op-mobile-social .op-wrap{padding-top:0;padding-bottom:0;}
  .optiprint-header.is-compact .op-mainrow .op-wrap{padding:8px 12px;}
  .optiprint-header.is-compact .op-logo img{height:28px;}
  .optiprint-header.is-compact .op-hamburger,
  .optiprint-header.is-compact .op-icon-btn{width:34px;height:34px;}
}

/* True desktop: keep search from crushing into a white vertical pill. */
@media (min-width:1101px) and (hover: hover){
  .optiprint-header .op-test-notice__toggle{display:none!important}
  .optiprint-header .op-test-notice__panel,
  .optiprint-header .op-test-notice__panel[hidden]{display:block!important}
  .optiprint-header .op-test-notice__collapse{display:none!important}
  .optiprint-header .op-test-notice__kicker{display:none}
  .optiprint-header .op-search{
    flex:1 1 240px;min-width:220px;max-width:560px;
  }
  .optiprint-header .op-phone-cta{flex:0 1 auto;min-width:0;}
  .optiprint-header .op-cta{padding:12px 16px !important;}
}

/* Shared image gallery lightbox (Наші роботи only). */
.op-gallery-lightbox[hidden]{display:none!important}
.op-gallery-lightbox{position:fixed;inset:0;z-index:10060;display:flex;align-items:center;justify-content:center;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
.op-gallery-lightbox__backdrop{position:absolute;inset:0;background:rgba(5,14,33,.88);backdrop-filter:blur(5px)}
.op-gallery-lightbox__dialog{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;width:min(1180px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:0}
.op-gallery-lightbox__image{display:block;max-width:100%;max-height:calc(100dvh - 96px);width:auto;height:auto;border-radius:12px;box-shadow:0 22px 70px rgba(0,0,0,.42);object-fit:contain}
.op-gallery-lightbox__close,.op-gallery-lightbox__nav{position:absolute;z-index:2;display:flex;align-items:center;justify-content:center;border:0;cursor:pointer;color:#fff;background:rgba(8,25,58,.75);box-shadow:0 4px 18px rgba(0,0,0,.22);padding:0}
.op-gallery-lightbox__close{top:12px;right:12px;width:42px;height:42px;border-radius:50%}
.op-gallery-lightbox__close svg{display:block;flex:none}
.op-gallery-lightbox__nav{top:50%;transform:translateY(-50%);width:46px;height:58px;border-radius:12px;font-size:46px;font-weight:300;line-height:1}
.op-gallery-lightbox__nav--prev{left:10px}.op-gallery-lightbox__nav--next{right:10px}
.op-gallery-lightbox__count{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);margin:0;padding:6px 12px;border-radius:999px;background:rgba(8,25,58,.75);color:#fff;font-size:13px;font-weight:700}
.op-gallery-lightbox__close:hover,.op-gallery-lightbox__nav:hover{background:#1a56d6}
body.op-gallery-lightbox-open{overflow:hidden}
@media(max-width:620px){.op-gallery-lightbox{padding:12px}.op-gallery-lightbox__image{max-height:calc(100dvh - 80px)}.op-gallery-lightbox__nav{width:38px;height:48px;font-size:38px}.op-gallery-lightbox__nav--prev{left:0}.op-gallery-lightbox__nav--next{right:0}.op-gallery-lightbox__close{top:8px;right:8px;width:40px;height:40px}}
