/* Additions to the retained KREWALT design. */
html { scroll-padding-top: 80px; }
body { line-height: 1.5; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
button:not(:disabled):active { transform: translateY(1px); }
button, a { transition: background-color .18s, color .18s, border-color .18s; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
img { max-width: 100%; }
section, form, .top > *, .section > *, .roi-section > *, .quoteform > * { min-width: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.skip-link { position: fixed; top: -100px; left: 20px; background: #fff; z-index: 300; padding: 12px; }
.skip-link:focus { top: 12px; }
.top { gap: 38px; }
.galleryrow { grid-template-columns: 70px minmax(0, 1fr); }
.thumbs { gap: 10px; }
.thumb { height: 68px; border-radius: 6px; }
.thumb.active { border-width: 2px; }
.mainphoto { width: 100%; min-width: 0; height: 458px; border: 0; padding: 0; min-height: 0; border-radius: 8px; aspect-ratio: auto; }
.zoom-hint { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; color: #17232b; background: #fffffff0; border-radius: 4px; }
.features { margin-left: 84px; }
.feature .symbol svg { width: 26px; height: 26px; margin: auto; fill: none; stroke: currentColor; stroke-width: 1.5; }
.service-list { padding-left: 18px; color: #52616c; line-height: 1.9; }
.selection-total { color: #5c666e; margin: 16px 0 0; }
.selection-total strong { color: #111a20; }
.prototype-note, .subtle-note { color: #68757d; }
.tabs { position: static; background: #fff; margin-inline: -24px; padding-inline: 40px; gap: 28px; }
.tab { font: inherit; font-weight: 750; background: none; border: 0; border-bottom: 3px solid transparent; text-align: left; }
.product-information { overflow-anchor: none; }
.product-information > [role="tabpanel"] { min-height: 370px; }
.product-information > [role="tabpanel"]:not(#details) { margin: 0; padding: 35px 25px 40px; border-top: 0; background: #fff; }
.section-head p { max-width: 480px; }
.section h2 { max-width: 720px; }
.situations-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 20px; }
.situations-grid article { background: #f4f6f7; border-radius: 8px; overflow: hidden; }
.situations-grid img { width: 100%; height: 245px; display: block; object-fit: cover; }
.situations-grid article > div { padding: 23px; }
.situations-grid span, .steps-grid article > span { color: var(--orange); font-weight: 800; }
.situations-grid h3 { letter-spacing: -.5px; margin: 10px 0; }
.situations-grid p { margin: 0; }
.demo-tag { position: absolute; top: 20px; left: 20px; background: #fff; padding: 10px 14px; color: #13212a; letter-spacing: .08em; font-weight: 800; border-left: 4px solid var(--orange); }
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-bottom: 20px; }
.steps-grid img { width: 100%; aspect-ratio: 1.12; object-fit: cover; border-radius: 6px; display: block; margin-bottom: 20px; }
.steps-grid h3 { margin: 8px 0; letter-spacing: -.4px; }
.steps-grid p { margin: 0; }
.equipment-section { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.equipment-photo { background: #f4f5f6; border-radius: 8px; overflow: hidden; }
.equipment-photo img { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.equipment-photo small { display: block; padding: 12px 18px; color: #5f6c74; }
.equipment-list { margin: 25px 0; }
.equipment-list > div { display: grid; grid-template-columns: 1fr 1.2fr; padding: 14px 0; border-bottom: 1px solid var(--line); gap: 18px; }
.equipment-list dt { font-weight: 750; }
.equipment-list dd { margin: 0; color: #5f6c75; }
.fit-form { display: grid; grid-template-columns: 1fr 1fr; padding: 28px; margin-block: 25px; gap: 20px; border: 1px solid #dce2e6; background: #fff; border-radius: 8px; }
.fit-heading { grid-column: 1/-1; }
.fit-heading h3 { margin: 0; }
.fit-heading p { margin-bottom: 0; }
.fit-form label, .search-dialog label { font-weight: 650; }
.fit-form input, .fit-form select, .fit-form textarea, .search-dialog input { width: 100%; display: block; margin-top: 9px; border: 1px solid #cfd8de; border-radius: 5px; padding: 12px; background: #fff; color: #17232c; }
.fit-form button { grid-column: 1/-1; padding-inline: 15px; }
#fitStatus { grid-column: 1/-1; margin: 0; }
.pricing-row { border: 0; border-bottom: 1px solid #e2e5e8; width: 100%; background: #fff; text-align: left; padding-inline: 12px; }
.pricing-row[aria-pressed="true"] { background: #fff4ed; box-shadow: inset 3px 0 var(--orange); }
.pricing-row:hover { background: #fff8f3; }
.price-options { padding-inline: 10px; }
.document-list { border-top: 1px solid var(--line); }
.document-list article { display: grid; grid-template-columns: .6fr 2fr 1fr; gap: 28px; align-items: center; border-bottom: 1px solid var(--line); padding: 26px 0; }
.document-type { font-weight: 800; color: var(--orange); }
.document-list h3 { margin: 0 0 8px; }
.document-list p { margin: 0; max-width: 590px; }
.document-list a { padding: 13px 15px; }
.process-list { list-style: none; padding: 0; counter-reset: process; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process-list li { counter-increment: process; border-top: 2px solid #dfe5e9; padding-top: 22px; }
.process-list li:before { content: "0" counter(process); display: block; color: var(--orange); font-weight: 800; margin-bottom: 20px; }
.quote-selection, .quote-success, .form-error { grid-column: 1/-1; }
.quote-selection { border-block: 1px solid #d6dfe5; padding-block: 18px; display: grid; gap: 7px; }
.quote-selection strong { letter-spacing: -.7px; }
#quoteConstraints { white-space: pre-line; }
.quote-success { border-left: 3px solid var(--orange); background: #fff; padding: 18px; }
.quote-success pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow-y: auto; background: #f4f6f7; padding: 15px; }
.quote-section > .quote-success { margin-top: -35px; padding: 25px; background: #f6f8f9; }
.quote-section > .quote-success pre { columns: 2; column-gap: 30px; max-height: none; }
.quote-success button { width: 100%; }
.form-error { color: #a72e18; margin: 0; }
dialog { color: #13202a; padding: 30px; border: 1px solid #d8e0e5; border-radius: 10px; width: min(620px, calc(100% - 30px)); max-height: calc(100dvh - 40px); overflow-y: auto; }
dialog::backdrop { background: #06101ab3; backdrop-filter: blur(3px); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid #dce3e7; padding-bottom: 20px; margin-bottom: 25px; }
.dialog-header h2 { margin: 0; letter-spacing: -.7px; }
.dialog-header .eyebrow { margin-bottom: 4px; }
.icon-button { width: 38px; height: 38px; background: #f1f4f5; border: 0; border-radius: 5px; font-size: 27px; flex-shrink: 0; }
.cart-product { display: grid; grid-template-columns: 135px 1fr; gap: 22px; }
.cart-product img { width: 100%; aspect-ratio: .9; object-fit: cover; border-radius: 5px; }
.cart-product p { margin: 6px 0; }
.cart-product small { color: #53626d; }
.cart-quantity { display: flex; width: 130px; align-items: center; justify-content: space-between; border: 1px solid #d4dde3; border-radius: 5px; margin-top: 15px; }
.cart-quantity button { background: none; border: 0; font-size: 20px; padding: 8px 14px; }
.text-button { border: 0; padding: 12px 0; background: transparent; text-decoration: underline; color: #4b5b66; }
.cart-summary { border-block: 1px solid #dce3e8; padding-block: 18px; margin-top: 25px; }
.cart-summary > div { display: flex; justify-content: space-between; gap: 15px; margin-block: 9px; }
.cart-summary dd { margin: 0; font-weight: 650; }
.cart-summary .cart-total { font-weight: 800; margin-top: 24px; }
.full-width { width: 100%; }
.cart-empty { padding: 10px 0 25px; }
.cart-empty p { color: #5c6a73; }
.cart-empty button { width: 100%; margin-top: 20px; }
.image-dialog { width: min(850px, calc(100% - 24px)); text-align: center; }
.image-dialog > .icon-button { float: right; }
.image-dialog > img { display: block; width: 100%; height: min(62dvh, 650px); object-fit: contain; clear: both; }
.image-dialog p { color: #63717c; }
.image-controls { display: flex; justify-content: space-between; gap: 10px; }
.search-dialog input { margin-bottom: 20px; }
#searchResults { display: grid; }
#searchResults a { border-bottom: 1px solid #dfe5e9; padding: 14px 0; font-weight: 650; }
#searchResults a:hover { color: var(--orange); }
.toast { z-index: 50; }
@media (max-width: 1150px) {
  .top { gap: 25px; }
  .mainphoto { height: 430px; }
  .thumb { height: 63px; }
}
@media (max-width: 900px) {
  .galleryrow { grid-template-columns: 56px minmax(0, 1fr); }
  .mainphoto { height: 390px; max-height: 560px; }
  .thumb { height: 55px; }
  .features { margin-left: 0; }
  .purchase { padding-block: 28px; }
  .tabs { margin-inline: -14px; padding-inline: 20px; gap: 24px; }
  .situations-grid { grid-template-columns: 1fr; }
  .situations-grid article { display: grid; grid-template-columns: .8fr 1fr; }
  .situations-grid img { height: 100%; min-height: 200px; }
  .steps-grid, .process-list { grid-template-columns: repeat(2, 1fr); }
  .equipment-section { gap: 28px; }
  .document-list article { grid-template-columns: 1fr 2fr; gap: 12px; }
  .document-list a { grid-column: 2; }
}
@media (max-width: 600px) {
  .galleryrow { grid-template-columns: 44px minmax(0, 1fr); gap: 9px; }
  .thumb { height: 44px; border-radius: 4px; }
  .thumbs { gap: 7px; }
  .mainphoto { height: auto; min-height: 0; aspect-ratio: .85; max-height: none; }
  .purchase h1 { letter-spacing: -1px; }
  .miniassurance { gap: 5px; }
  .tabs { margin-inline: -13px; }
  .product-information > [role="tabpanel"]:not(#details) { padding: 25px 5px 30px; }
  .situations-grid article { grid-template-columns: 1fr; }
  .situations-grid img { height: 210px; }
  .situations-grid article > div { padding: 20px; }
  .equipment-section { grid-template-columns: 1fr; }
  .equipment-list > div { grid-template-columns: 1fr 1.2fr; gap: 12px; }
  .steps-grid { gap: 15px; }
  .fit-form { grid-template-columns: 1fr; padding: 20px 15px; gap: 17px; }
  .document-list article { grid-template-columns: 1fr; gap: 16px; }
  .document-list a { grid-column: 1; text-align: left; }
  .process-list { gap: 18px; }
  dialog { padding: 20px; }
  .cart-product { grid-template-columns: 90px 1fr; gap: 15px; }
  .quote-section > .quote-success { margin-top: 0; }
  .quote-section > .quote-success pre { columns: 1; }
  .mobilebuy { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; }
}

/* Bottom bar of the footer: copyright on the left, photo credits folded on the right (CC BY attribution kept one click away).
   No bottom margin under the footer: it reaches the bottom of the page. */
.shell { padding-bottom: 0; }
/* From 701 to 900 px the imported design narrows the gutter to 14 px while full-width blocks still pull out by 24 px:
   keep the 24 px gutter so they meet the edges without a sideways scroll. */
@media (min-width: 701px) and (max-width: 900px) { .shell { padding-inline: 24px; } }
footer > div.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px 32px;
  padding-top: 22px;
  border-top: 1px solid #26343c;
  color: #97a7b0;
}
.footer-bottom p { margin: 0; font-size: var(--fs-meta); line-height: 1.6; }
.footer-legal { display: grid; gap: 2px; }
.footer-demo { color: #75848d; }
.footer-credits summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-meta);
  color: #c5d0d6;
  list-style: none;
  cursor: pointer;
}
.footer-credits summary::-webkit-details-marker { display: none; }
.footer-credits summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.footer-credits[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.footer-credits summary:hover { color: #fff; }
.footer-credits[open] { flex-basis: 100%; }
.footer-credits p { margin-top: 8px; max-width: 980px; color: #97a7b0; }
.footer-credits a { font-size: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-credits a:hover { color: #fff; }
/* The product page keeps its fixed buy bar on small screens: leave room for it under the footer. */
@media (max-width: 900px) {
  body:has(.mobilebuy) footer { padding-bottom: 96px; }
}
/* Footer link columns (js/footer-links.mjs): brand, then Produits, Achat professionnel, Aide, KREWALT. */
footer { grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); }
footer > div:not(.footer-brand):not(.footer-bottom) a, .footer-link-button { color: #c5d0d6; transition: color .15s; }
footer > div:not(.footer-brand):not(.footer-bottom) a:hover, .footer-link-button:hover { color: #fff; }
.footer-link-button { padding: 0; border: 0; background: none; font: inherit; font-size: var(--fs-small); line-height: 1.5; text-align: left; cursor: pointer; }
@media (max-width: 1150px) {
  footer { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  footer .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* KREWALT sites by country, under the footer brand (js/locales.mjs): flag and name, all shown alike.
   Every country reacts to the pointer; a version not built yet has no link, so a click does nothing. */
.footer-locales { display: grid; gap: 12px; max-width: 560px; margin-top: 24px; }
footer .footer-locales-title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-small); font-weight: 700; color: #fff; }
.footer-locales-title svg { width: 18px; height: 18px; fill: none; stroke: var(--orange); stroke-width: 1.6; }
.footer-locales ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px; margin: 0 0 0 -10px; padding: 0; list-style: none; }
.footer-locale {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #c5d0d6;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.footer-locale-flag { width: 26px; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px #ffffff2e; transition: transform .15s; }
footer .footer-locale-name { font-size: var(--fs-small); line-height: 1.25; white-space: nowrap; }
.footer-locale:hover { background: #ffffff0d; border-color: #3a4852; color: #fff; }
.footer-locale:hover .footer-locale-flag { transform: scale(1.08); }
@media (max-width: 600px) {
  .footer-locales ul { grid-template-columns: 1fr 1fr; }
  footer .footer-locale-name { white-space: normal; }
}
}
