/* WordPress-only additions: admin bar, products overview page, editor content. */
.admin-bar .site-header.is-sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header.is-sticky { top: 0; } }
.page-main .entry-content > *:first-child { margin-top: 0; }

/* ---------- products overview (/מוצרים/, /en/products/) ---------- */
.ov-hero { background: #eaf3ff center / cover no-repeat; min-height: 460px; display: flex; align-items: center; }
.ov-hero-in { padding-block: 60px; }
.ov-label { font-size: 24px; margin: 0 0 6px; color: var(--c-primary); }
.ov-title { font-size: clamp(40px, 5vw, 62px); font-weight: 800; color: var(--c-primary); margin-bottom: 18px; }
.ov-text { font-size: 18px; max-width: 590px; margin-bottom: 22px; }
.ov-search { display: flex; gap: 10px; background: #fff; padding: 4px; border-radius: 4px; max-width: 534px; box-shadow: 0 4px 18px rgba(48, 122, 241, .12); }
.ov-search input { flex: 1; border: 0; padding: 12px 14px; outline: 0; min-width: 0; }
.ov-search button { border: 0; background: #5f9df7; color: #fff; padding: 0 30px; border-radius: 3px; font-weight: 500; }
.ov-search button:hover { background: var(--c-accent); }
.ov-cat { padding-block: 32px 60px; }
.ov-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 2px solid var(--c-accent); scrollbar-width: thin; }
.ov-tab { flex: 0 0 auto; background: #fff; border: 1px solid #b9d2fb; border-bottom: 0; border-radius: 10px 10px 0 0; color: #3d86e8; font-weight: 600; font-size: 17px; padding: 26px 14px 18px; transition: background .2s, color .2s; }
.ov-tab:hover { background: #f1f6ff; }
.ov-tab.on { background: #4a8fe9; color: #fff; border-color: #4a8fe9; }
.ov-box { margin: 26px 20px 0; padding: 26px 22px 28px; background: #fff; border-inline-start: 14px solid var(--c-accent); box-shadow: 0 6px 24px rgba(20, 16, 38, .08); }
.ov-box-title { font-size: 26px; margin-bottom: 12px; }
.ov-sub-label { color: #444; margin-bottom: 14px; }
.ov-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ov-chip { display: inline-block; border: 2px solid #23308c; border-radius: 4px; padding: 16px 18px; color: #23308c; font-size: 14px; line-height: 1.2; transition: background .2s, color .2s; }
.ov-chip:hover { background: #23308c; color: #fff; }
.ov-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 26px 20px 0; }
.ov-card { display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; box-shadow: 0 4px 18px rgba(20, 16, 38, .08); padding: 0 16px 20px; transition: transform .2s, box-shadow .2s; }
.ov-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(20, 16, 38, .14); }
.ov-card-img { display: flex; align-items: center; justify-content: center; height: 200px; width: 100%; padding: 12px 0; }
.ov-card-img img { max-height: 100%; width: auto; object-fit: contain; }
.ov-card-cat { color: var(--c-accent); font-size: 14px; font-weight: 600; margin-top: 4px; }
.ov-card-title { font-weight: 700; font-size: 19px; line-height: 1.25; color: var(--c-black); margin: 2px 0 10px; }
.ov-card-text { font-size: 14px; color: #333; flex: 1; }
.ov-card-btn { margin-top: 16px; background: var(--c-accent); color: #fff; border-radius: 3px; padding: 10px 38px; font-size: 15px; }
.ov-all { text-align: center; margin: 30px 0 0; }
.ov-article { margin: 40px 20px 0; padding: 26px; background: #fff; border-top: 3px solid var(--c-royal); box-shadow: 0 4px 18px rgba(20, 16, 38, .08); }
@media (max-width: 1024px) { .ov-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) {
  .ov-hero { min-height: 0; background-position: 30% center; }
  .ov-grid { grid-template-columns: repeat(2, 1fr); margin-inline: 0; gap: 10px; }
  .ov-box, .ov-article { margin-inline: 0; }
  .ov-tab { font-size: 15px; padding: 16px 12px 12px; }
  .ov-card-img { height: 150px; }
}
@media (max-width: 420px) { .ov-grid { grid-template-columns: 1fr; } }

/* ---------- footer contact form: use the full width of the blue box ---------- */
@media (min-width: 1025px) {
  .lead-form { max-width: none; flex: 1 1 0; min-width: 0; flex-direction: column; flex-wrap: nowrap; }
  .lf-row { display: flex; width: 100%; gap: 20px; }
  .lf-input, .lf-select { flex: 1 1 0; width: auto; min-width: 0; margin: 0; }
  .lf-msg { flex: 3 1 0; max-width: none; }
  .lf-submit { flex: 1 1 0; width: auto; min-width: 0; padding-inline: 10px; margin: 0; }
}

/* 404: number centred above the text */
.mt-404 .mt-404-code { display: block; width: 100%; max-width: none; margin-inline: auto; text-align: center; }

/* quote basket: "added" toast instead of leaving the product page */
.mt-toast { position: fixed; inset-inline-start: 50%; bottom: 28px; transform: translateX(-50%); z-index: 9999; background: var(--c-primary); color: #fff; border-radius: 12px; padding: 14px 18px; display: flex; gap: 16px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 15px; opacity: 0; transition: opacity .25s, transform .25s; }
[dir=rtl] .mt-toast { transform: translateX(50%); }
.mt-toast.on { opacity: 1; }
.mt-toast a { background: var(--c-accent); color: #fff; border-radius: 80px; padding: 8px 16px; font-weight: 600; white-space: nowrap; }
.mt-panel-link { cursor: pointer; }

/* ---------- added sections (ACF flexible content "סקשנים נוספים") ---------- */
.mts { --pad: 70px; padding-block: var(--pad); }
.mts-sp-s { --pad: 36px; } .mts-sp-l { --pad: 110px; } .mts-sp-none { --pad: 0px; }
.mts-bg-light { background: #eef5ff; }
.mts-bg-blue { background: var(--c-accent); color: #fff; }
.mts-bg-dark { background: var(--c-band); color: #fff; }
.mts-bg-blue :is(h2,h3), .mts-bg-dark :is(h2,h3) { color: #fff; }
.mts-title { font-size: clamp(28px, 3vw, 40px); font-weight: 800; color: var(--c-primary); margin-bottom: 22px; }
.mts-al-center .mts-title, .mts-al-center .mts-intro, .mts-al-center .mts-btns { text-align: center; justify-content: center; }
.mts-al-center.mts--text .mts-body { text-align: center; max-width: 900px; margin-inline: auto; }
.mts-intro { font-size: 18px; max-width: 900px; margin: 0 0 28px; }
.mts-al-center .mts-intro { margin-inline: auto; }
.mts-body { font-size: 17px; line-height: 1.7; }
.mts-body :is(h3,h4) { margin: 1.2em 0 .5em; font-size: 22px; }
.mts-body ul, .mts-body ol { padding-inline-start: 1.3em; margin: 0 0 1rem; }
.mts-body a { color: var(--c-accent); text-decoration: underline; }
.mts-body img { border-radius: 8px; }
.mts-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.mts-it { display: flex; gap: 50px; align-items: center; }
.mts-it-end { flex-direction: row-reverse; }
.mts-it-media { flex: 0 0 var(--w, 50%); }
.mts-it-media img { width: 100%; border-radius: 10px; }
.mts-it-text { flex: 1; min-width: 0; }
.mts-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 24px; }
.mts-card { display: flex; flex-direction: column; background: #fff; color: var(--c-primary); border-radius: 10px; box-shadow: 0 6px 24px rgba(20,16,38,.08); padding: 26px; transition: transform .2s, box-shadow .2s; }
a.mts-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20,16,38,.14); }
.mts-card-img { margin: -26px -26px 18px; display: flex; align-items: center; justify-content: center; }
.mts-card-img img { width: 100%; height: 210px; object-fit: cover; border-radius: 10px 10px 0 0; }
.mts-prod .mts-card-img { padding: 16px; } .mts-prod .mts-card-img img { object-fit: contain; height: 190px; }
.mts-card-title { font-size: 20px; margin-bottom: 8px; color: var(--c-primary) !important; }
.mts-card-text { font-size: 15px; color: #444; }
.mts-cta { background: var(--c-navy) center / cover no-repeat; color: #fff; border-radius: 14px; padding: 60px 40px; text-align: center; }
.mts-cta .mts-title { color: #fff; }
.mts-cta-text { font-size: 19px; max-width: 760px; margin: 0 auto; }
.mts-cta .mts-btns { justify-content: center; }
.mts-gal { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 14px; }
.mts-gal-photo .mts-gal-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; transition: opacity .2s; }
.mts-gal-photo .mts-gal-item:hover img { opacity: .85; }
.mts-gal-logo .mts-gal-item { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; padding: 18px; min-height: 110px; }
.mts-gal-logo .mts-gal-item img { max-height: 80px; width: auto; object-fit: contain; }
.mts-video { position: relative; aspect-ratio: 16 / 9; max-width: 1000px; margin: 0 auto 18px; border-radius: 12px; overflow: hidden; background: #000; }
.mts-video :is(iframe, video) { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mts-faq { max-width: 1000px; }
.mts-al-center .mts-faq { margin-inline: auto; }
.mts-faq-item { background: #fff; color: var(--c-primary); border: 1px solid var(--c-border); border-radius: 8px; margin-bottom: 10px; }
.mts-faq-item summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.mts-faq-item summary::-webkit-details-marker { display: none; }
.mts-faq-item summary::after { content: "+"; color: var(--c-accent); font-size: 24px; line-height: 1; }
.mts-faq-item[open] summary::after { content: "–"; }
.mts-faq-a { padding: 0 22px 18px; line-height: 1.7; }
@media (max-width: 1024px) { .mts-grid, .mts-gal { grid-template-columns: repeat(min(var(--cols, 3), 2), 1fr); } }
@media (max-width: 767px) {
  .mts { --pad: 44px; } .mts-sp-s { --pad: 24px; } .mts-sp-l { --pad: 64px; }
  .mts-it, .mts-it-end { flex-direction: column; gap: 24px; }
  .mts-it-media { flex-basis: auto; width: 100%; }
  .mts-grid { grid-template-columns: 1fr; }
  .mts-gal { grid-template-columns: repeat(2, 1fr); }
  .mts-cta { padding: 40px 20px; }
}

/* image protection */
img, picture, video, [style*="background-image"] { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.mt-tlink { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.mt-tlink:hover { color: var(--c-royal); }
