/* ENG House V11.6 - smoother premium CTA interactions, all devices */
:where(
  .btn,
  .quote-btn,
  .catalog-hero-btn,
  .catalog-help-btn,
  .catalog-card-btn,
  .catalog-clear,
  .pd-action,
  .pd-doc-download,
  .pd-related-btn,
  .detail-not-found a,
  .contact-map-button,
  .showroom-map-btn
){
  --eng-btn-x:50%;
  --eng-btn-y:50%;
  position:relative;
  overflow:hidden;
  isolation:isolate;
  transform:translate3d(0,0,0);
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  transition:
    transform .48s cubic-bezier(.16,1,.3,1),
    box-shadow .48s cubic-bezier(.16,1,.3,1),
    background-color .42s ease,
    border-color .42s ease,
    color .42s ease,
    filter .42s ease !important;
  will-change:transform,box-shadow;
}

/* A long soft light sweep. It sits above the background but remains subtle
   enough that labels stay fully readable. */
:where(
  .btn,
  .quote-btn,
  .catalog-hero-btn,
  .catalog-help-btn,
  .catalog-card-btn,
  .catalog-clear,
  .pd-action,
  .pd-doc-download,
  .pd-related-btn,
  .detail-not-found a,
  .contact-map-button,
  .showroom-map-btn
)::before{
  content:"";
  position:absolute;
  top:-55%;
  bottom:-55%;
  left:-42%;
  width:27%;
  pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.12),rgba(255,255,255,.52),rgba(255,255,255,.14),transparent);
  transform:translate3d(-180%,0,0) rotate(13deg);
  opacity:0;
  transition:
    transform .92s cubic-bezier(.16,1,.3,1),
    opacity .28s ease;
  z-index:2;
}

/* Cursor-following bloom. The JS only updates two CSS variables; the motion
   itself stays compositor-friendly. */
:where(
  .btn,
  .quote-btn,
  .catalog-hero-btn,
  .catalog-help-btn,
  .catalog-card-btn,
  .catalog-clear,
  .pd-action,
  .pd-doc-download,
  .pd-related-btn,
  .detail-not-found a,
  .contact-map-button,
  .showroom-map-btn
)::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  background:radial-gradient(circle at var(--eng-btn-x) var(--eng-btn-y),rgba(255,255,255,.34) 0,rgba(255,255,255,.15) 20%,transparent 48%);
  opacity:0;
  transition:opacity .38s ease;
  z-index:1;
}

:where(
  .btn,
  .quote-btn,
  .catalog-hero-btn,
  .catalog-help-btn,
  .catalog-card-btn,
  .catalog-clear,
  .pd-action,
  .pd-doc-download,
  .pd-related-btn,
  .detail-not-found a,
  .contact-map-button,
  .showroom-map-btn
):hover{
  transform:translate3d(0,-4px,0) scale(1.018) !important;
  filter:saturate(1.06) brightness(1.015);
  box-shadow:
    0 16px 34px rgba(254,89,0,.26),
    0 6px 14px rgba(28,38,61,.10),
    inset 0 1px 0 rgba(255,255,255,.24) !important;
}

:where(
  .btn,
  .quote-btn,
  .catalog-hero-btn,
  .catalog-help-btn,
  .catalog-card-btn,
  .catalog-clear,
  .pd-action,
  .pd-doc-download,
  .pd-related-btn,
  .detail-not-found a,
  .contact-map-button,
  .showroom-map-btn
):hover::before{
  opacity:1;
  transform:translate3d(650%,0,0) rotate(13deg);
}

:where(
  .btn,
  .quote-btn,
  .catalog-hero-btn,
  .catalog-help-btn,
  .catalog-card-btn,
  .catalog-clear,
  .pd-action,
  .pd-doc-download,
  .pd-related-btn,
  .detail-not-found a,
  .contact-map-button,
  .showroom-map-btn
):hover::after{opacity:.72}

/* Keep secondary/outlined CTAs crisp, then let the orange arrive smoothly. */
.btn-outline:hover,
.pd-action.secondary:hover{
  background-color:#fe5900 !important;
  border-color:#fe5900 !important;
  color:#fff !important;
}
.catalog-card-btn:hover{
  background:#fe5900 !important;
  color:#fff !important;
}
.pd-related-btn:hover{
  background-color:#fe5900 !important;
  color:#fff !important;
}

/* Replace the old snappy arrow kick with one continuous glide. */
.btn svg,
.quote-btn svg,
.contact-map-button svg,
.showroom-map-btn svg,
.catalog-hero-btn > span:last-child,
.catalog-help-btn > span:last-child,
.catalog-card-btn > span:last-child,
.pd-action > span:last-child,
.pd-related-btn > span:last-child,
.pd-doc-download > span:last-child{
  animation:none !important;
  transition:transform .62s cubic-bezier(.16,1,.3,1) !important;
  will-change:transform;
}
.btn:hover svg,
.quote-btn:hover svg,
.contact-map-button:hover svg,
.showroom-map-btn:hover svg,
.catalog-hero-btn:hover > span:last-child,
.catalog-help-btn:hover > span:last-child,
.catalog-card-btn:hover > span:last-child,
.pd-action:hover > span:last-child,
.pd-related-btn:hover > span:last-child{
  animation:none !important;
  transform:translate3d(7px,0,0) !important;
}
.pd-doc-download:hover > span:last-child{
  animation:none !important;
  transform:translate3d(0,5px,0) !important;
}

/* Tactile press motion on mouse and touch. */
:where(
  .btn,
  .quote-btn,
  .catalog-hero-btn,
  .catalog-help-btn,
  .catalog-card-btn,
  .catalog-clear,
  .pd-action,
  .pd-doc-download,
  .pd-related-btn,
  .detail-not-found a,
  .contact-map-button,
  .showroom-map-btn
):active{
  transform:translate3d(0,-1px,0) scale(.972) !important;
  filter:saturate(1.02) brightness(.985);
  box-shadow:0 5px 13px rgba(28,38,61,.12) !important;
  transition-duration:.11s !important;
}

:where(
  .btn,
  .quote-btn,
  .catalog-hero-btn,
  .catalog-help-btn,
  .catalog-card-btn,
  .catalog-clear,
  .pd-action,
  .pd-doc-download,
  .pd-related-btn,
  .detail-not-found a,
  .contact-map-button,
  .showroom-map-btn
):focus-visible{
  outline:3px solid rgba(254,89,0,.27) !important;
  outline-offset:4px !important;
}

.eng-btn-ripple{
  position:absolute;
  display:block;
  border-radius:50%;
  pointer-events:none;
  background:rgba(255,255,255,.38);
  transform:translate(-50%,-50%) scale(0);
  opacity:.72;
  z-index:3;
  animation:engButtonRippleV116 .68s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes engButtonRippleV116{
  0%{transform:translate(-50%,-50%) scale(0);opacity:.72}
  65%{opacity:.25}
  100%{transform:translate(-50%,-50%) scale(1);opacity:0}
}

/* Touch devices do not have a true hover, so let the press ripple + scale carry
   the interaction instead of leaving a sticky hover state behind. */
@media (hover:none){
  :where(
    .btn,
    .quote-btn,
    .catalog-hero-btn,
    .catalog-help-btn,
    .catalog-card-btn,
    .catalog-clear,
    .pd-action,
    .pd-doc-download,
    .pd-related-btn,
    .detail-not-found a,
    .contact-map-button,
    .showroom-map-btn
  ):hover{
    transform:translate3d(0,0,0) scale(1) !important;
    filter:none;
    box-shadow:inherit;
  }
  :where(
    .btn,
    .quote-btn,
    .catalog-hero-btn,
    .catalog-help-btn,
    .catalog-card-btn,
    .catalog-clear,
    .pd-action,
    .pd-doc-download,
    .pd-related-btn,
    .detail-not-found a,
    .contact-map-button,
    .showroom-map-btn
  ):hover::before,
  :where(
    .btn,
    .quote-btn,
    .catalog-hero-btn,
    .catalog-help-btn,
    .catalog-card-btn,
    .catalog-clear,
    .pd-action,
    .pd-doc-download,
    .pd-related-btn,
    .detail-not-found a,
    .contact-map-button,
    .showroom-map-btn
  ):hover::after{opacity:0}
}

/* ENG House V11.8 - precise arrow/icon centering in every public control */
:where(
  .btn,
  .quote-btn,
  .catalog-hero-btn,
  .catalog-help-btn,
  .catalog-card-btn,
  .pd-action,
  .pd-doc-download,
  .pd-related-btn,
  .contact-map-button,
  .showroom-map-btn
){
  align-items:center !important;
}

/* SVG arrows sit on their own centered box instead of the text baseline. */
:where(.btn,.quote-btn,.contact-map-button,.showroom-map-btn) > svg{
  display:block !important;
  flex:0 0 auto;
  align-self:center;
  margin-top:0 !important;
  margin-bottom:0 !important;
  transform-box:fill-box;
  transform-origin:center center;
}

/* Text-arrow CTAs use a fixed line box so the glyph is vertically centered. */
:where(.catalog-hero-btn,.catalog-help-btn,.catalog-card-btn,.pd-action,.pd-doc-download,.pd-related-btn) > span:last-child{
  display:inline-grid !important;
  place-items:center;
  align-self:center;
  flex:0 0 auto;
  min-width:1.35em;
  height:1.35em;
  padding:0;
  margin:0;
  line-height:1 !important;
  text-align:center;
  transform-origin:center center;
}

/* Standalone arrows and arrow-only controls. */
.card-arrow,
.loc-arrow{
  display:grid !important;
  place-items:center !important;
  line-height:1 !important;
  text-align:center;
}
.card-arrow{width:22px;height:22px}
.card-arrow svg{display:block;margin:auto}

:where(
  .catalog-search button,
  .catalog-view-toggle button,
  .catalog-pagination button,
  .catalog-filter-close,
  .filter-toggle,
  .pd-thumb-nav,
  .pd-image-arrow,
  .gallery-nav,
  .gallery-close,
  .eng-map-controls button
){
  align-items:center !important;
  justify-content:center !important;
  place-items:center !important;
  text-align:center !important;
  line-height:1 !important;
}

/* The V-shaped product thumbnail controls rotate around their true center. */
.pd-thumb-nav{
  transform-origin:50% 50% !important;
  padding:0 !important;
}
.pd-image-arrow,
.gallery-nav,
.gallery-close,
.catalog-pagination button,
.catalog-view-toggle button,
.catalog-search button,
.filter-toggle{
  padding-top:0 !important;
  padding-bottom:0 !important;
}

/* V11.8 audit addendum: text links with arrows use the same optical centering. */
.top-link{
  align-items:center !important;
}
.top-link > svg{
  display:block !important;
  flex:0 0 auto;
  align-self:center;
  margin-top:0 !important;
  margin-bottom:0 !important;
  transform-box:fill-box;
  transform-origin:center center;
}
