/**
 * EZGation — sitewide responsive (mobile-first polish)
 * Loaded after ez-header-client on every front-end page.
 */

html, body {
  overflow-x: clip;
}
img, video, iframe, svg {
  max-width: 100%;
  height: auto;
}

/* =====================================================================
   HEADER + FOOTER — phone / tablet
   ===================================================================== */
@media (max-width: 767px) {
  /* ---- Utilbar: WA | Search · Lang · Inquiry (never hide whole columns) ---- */
  body .elementor-520 .ez-utilbar,
  body .elementor-520 .ez-utilbar.e-con,
  body .elementor-520 .ez-utilbar.e-con > .e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.4rem !important;
    padding: 0.35rem 0.85rem !important;
    min-height: 34px !important;
    max-height: 40px !important;
    overflow: hidden !important;
  }
  body .elementor-520 .ez-utilbar__left,
  body .elementor-520 .ez-utilbar__right {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: auto !important;
    max-width: none !important;
    flex: 0 1 auto !important;
    gap: 0.5rem !important;
    margin: 0 !important;
  }
  body .elementor-520 .ez-utilbar__left {
    min-width: 0;
    overflow: hidden;
    flex: 1 1 auto !important;
  }
  body .elementor-520 .ez-utilbar__right {
    flex: 0 0 auto !important;
    margin-left: auto !important;
  }
  /* Hide only the leaf nodes — :has() on .elementor-element was killing whole columns */
  body .elementor-520 .ez-utilbar .ez-mail,
  body .elementor-520 .ez-utilbar .ez-social {
    display: none !important;
  }
  body .elementor-520 .ez-utilbar .ez-wa {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.3rem !important;
    font-size: 11px !important;
    line-height: 13px !important;
    height: 13px !important;
    min-height: 13px !important;
    white-space: nowrap;
  }
  body .elementor-520 .ez-utilbar .ez-wa svg,
  body .elementor-520 .ez-utilbar .ez-wa .ez-wa__icon {
    display: block !important;
    width: 13px !important;
    height: 13px !important;
    max-width: 13px !important;
    max-height: 13px !important;
    flex: 0 0 13px !important;
    align-self: center !important;
  }
  /* Hide phone digits; show short label via ::before — same 13px box as icon */
  body .elementor-520 .ez-utilbar .ez-wa span {
    font-size: 0 !important;
    line-height: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 13px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body .elementor-520 .ez-utilbar .ez-wa span::before {
    content: "WhatsApp";
    display: block !important;
    font-size: 11px !important;
    font-weight: 500;
    line-height: 13px !important;
    height: 13px !important;
  }
  /* Hero search covers product search — hide utilbar Search on phone */
  body .elementor-520 .ez-utilbar .ez-search {
    display: none !important;
  }
  body .elementor-520 .ez-utilbar .ez-lang select,
  body .elementor-520 .ez-utilbar .gtranslate_wrapper select {
    font-size: 11px !important;
    padding: 0.1rem 0.25rem !important;
    max-width: 4.75rem;
    min-height: 24px;
  }
  body .elementor-520 .ez-utilbar .ez-inquiry-badge {
    font-size: 11px !important;
    max-width: 6.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* ---- Main header: logo | Quote | burger (dropdown must not steal flex width) ---- */
  body .elementor-520 .ez-header-main,
  body .elementor-520 .ez-header-main.e-con,
  body .elementor-520 .ez-header-main > .e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    padding: 0.55rem 0.85rem !important;
    min-height: 56px !important;
    overflow: visible !important;
  }
  body .elementor-520 .ez-header-main > .elementor-widget-image,
  body .elementor-520 .ez-header-main .elementor-widget-image {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 7.5rem !important;
    margin: 0 !important;
  }
  body .elementor-520 .ez-header-main .elementor-widget-image img {
    max-height: 30px !important;
    width: auto !important;
  }
  /* Actions cluster: shrink-wrap to CTA + burger only */
  body .elementor-520 .ez-header-main > .e-con,
  body .elementor-520 .ez-header-main > .e-con-inner > .e-con {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: auto !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.45rem !important;
  }
  body .elementor-520 .ez-header-main nav.elementor-nav-menu--main {
    display: none !important;
  }
  /* Nav widget = burger only; dropdown overlays viewport, never flex-width */
  body .elementor-520 .ez-header-main .elementor-widget-nav-menu {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 44px !important;
    order: 2 !important;
    position: relative !important;
  }
  /* Absolute dropdown = zero flex footprint (was static + 188px wide closed) */
  body .elementor-520 .ez-header-main .elementor-nav-menu--dropdown {
    position: absolute !important;
    top: calc(100% + 0.65rem) !important;
    right: 0 !important;
    left: auto !important;
    width: min(18rem, calc(100vw - 1.5rem)) !important;
    max-width: min(18rem, calc(100vw - 1.5rem)) !important;
    z-index: 1000 !important;
    box-sizing: border-box !important;
  }
  body .elementor-520 .ez-header-main .elementor-widget-button,
  body .elementor-520 .ez-header-main .ez-header-cta {
    flex: 0 0 auto !important;
    width: auto !important;
    order: 1 !important;
  }
  body .elementor-520 .ez-header-main .elementor-button,
  body .elementor-520 .ez-header-cta .elementor-button {
    padding: 0.5rem 0.85rem !important;
    font-size: 0.78rem !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    min-height: 36px;
    max-width: none !important;
  }
  body .elementor-520 .elementor-menu-toggle {
    margin: 0 !important;
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
  }

  /* ---- Footer mobile: brand full-width, link cols 2-up (not one tall stack) ---- */
  body .elementor-523 .ez-footer > .e-con:first-child,
  body .elementor-523 .ez-footer .e-con:has(> .e-con:nth-child(4)):not(:has(> .e-con:nth-child(5))),
  body .elementor-523 .ez-footer .e-con-inner:has(> .e-con:nth-child(4)):not(:has(> .e-con:nth-child(5))) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 1.15rem 0.85rem !important;
    padding-left: 1.15rem !important;
    padding-right: 1.15rem !important;
    width: 100% !important;
    max-width: 100% !important;
    --flex-direction: row !important;
  }
  /* Brand block spans full row */
  body .elementor-523 .ez-footer .e-con:has(> .e-con:nth-child(4)):not(:has(> .e-con:nth-child(5))) > .e-con:first-child,
  body .elementor-523 .ez-footer .e-con-inner:has(> .e-con:nth-child(4)):not(:has(> .e-con:nth-child(5))) > .e-con:first-child,
  body .elementor-523 .ez-footer > .e-con:first-child > .e-con:first-child {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    --width: 100% !important;
  }
  /* Product / Resources / Company — two columns */
  body .elementor-523 .ez-footer .e-con:has(> .e-con:nth-child(4)):not(:has(> .e-con:nth-child(5))) > .e-con:not(:first-child),
  body .elementor-523 .ez-footer .e-con-inner:has(> .e-con:nth-child(4)):not(:has(> .e-con:nth-child(5))) > .e-con:not(:first-child),
  body .elementor-523 .ez-footer > .e-con:first-child > .e-con:not(:first-child) {
    flex: 1 1 calc(50% - 0.45rem) !important;
    width: calc(50% - 0.45rem) !important;
    max-width: calc(50% - 0.45rem) !important;
    min-width: 0 !important;
    --width: 50% !important;
  }
  body .elementor-523 .ez-footer-brand__tagline,
  body .elementor-523 .ez-footer-brand p {
    max-width: none !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
  }
  body .elementor-523 .ez-social {
    display: inline-flex !important;
    max-width: none !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  body .elementor-523 .ez-footer .elementor-heading-title {
    font-size: 1rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.4rem !important;
    line-height: 1.3 !important;
  }
  body .elementor-523 .ez-footer .elementor-nav-menu--main .elementor-item {
    padding: 0.28rem 0 !important;
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
  }
  body .elementor-523 .ez-footer-bottom,
  body .elementor-523 .ez-footer-bottom.e-con,
  body .elementor-523 .ez-footer-bottom > .e-con-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.45rem !important;
    padding-top: 1rem !important;
    width: 100% !important;
  }
  body .elementor-523 .ez-footer-bottom__tag {
    text-align: left !important;
  }

  .ez-wa-float {
    right: 12px;
    bottom: 12px;
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 480px) {
  body .elementor-520 .ez-utilbar .ez-wa {
    max-width: 9rem;
  }
  /* Ultra-narrow: shorten CTA label via font; keep full text readable */
  body .elementor-520 .ez-header-main .elementor-button,
  body .elementor-520 .ez-header-cta .elementor-button {
    padding: 0.45rem 0.7rem !important;
    font-size: 0.72rem !important;
  }
  body .elementor-520 .ez-header-main .elementor-widget-image {
    max-width: 6.5rem !important;
  }
}

/* =====================================================================
   SHARED CONTENT SHELL
   ===================================================================== */
@media (max-width: 767px) {
  .elementor-location-header + *,
  main.ez-site-main,
  .ez-site-main {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Generic Elementor containers breathe */
  body .elementor > .e-con > .e-con-inner,
  body .elementor-section > .elementor-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  h1.elementor-heading-title {
    font-size: clamp(1.65rem, 6.5vw, 2.15rem) !important;
    line-height: 1.18 !important;
  }
  h2.elementor-heading-title {
    font-size: clamp(1.35rem, 5vw, 1.75rem) !important;
  }

  /* Inquiry band */
  .ez-inquiry-band__in,
  .ez-inquiry-band .ezh-cta-2col,
  .ez-inquiry-band > .elementor-container,
  .ez-apps-cta > .elementor-container {
    padding: 1.75rem 1.15rem !important;
  }
  .ez-inquiry-band .ez-cta-actions,
  .ez-apps-cta .ez-cta-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }
  .ez-inquiry-band .ez-cta-actions .ez-btn,
  .ez-apps-cta .ez-cta-actions .ez-btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 2.75rem;
  }

  /* Product cards */
  .ez-card .ez-card__actions {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
  }
  .ez-card .ez-card__actions .ez-btn {
    width: 100% !important;
    flex: 1 1 auto !important;
    justify-content: center !important;
  }
}

/* =====================================================================
   HOME
   ===================================================================== */
@media (max-width: 767px) {
  /* Hero mobile: breathe — copy → dual CTA → product → 2 proof lines */
  /* Beat :root .elementor[data-elementor-type=wp-page] > .e-con { --padding-left: var(--ez-page-edge) } */
  :root body.home .elementor[data-elementor-type="wp-page"] > .ezh-hero.e-con,
  :root body.page-id-18 .elementor[data-elementor-type="wp-page"] > .ezh-hero.e-con,
  body.home .ezh-hero.e-con,
  body.page-id-18 .ezh-hero.e-con,
  body.home .ez-tpl.ezh-hero,
  body.page-id-18 .ez-tpl.ezh-hero {
    flex-direction: column !important;
    --padding-left: 1.35rem !important;
    --padding-right: 1.35rem !important;
    --padding-inline-start: 1.35rem !important;
    --padding-inline-end: 1.35rem !important;
    padding-block: 2rem 2.5rem !important;
    padding-inline: 1.35rem !important;
    padding-inline-start: 1.35rem !important;
    padding-inline-end: 1.35rem !important;
    gap: 1.6rem !important;
  }
  body.home .ezh-hero.e-con > .e-con-inner,
  body.page-id-18 .ezh-hero.e-con > .e-con-inner {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    gap: 1.6rem !important;
    flex-direction: column !important;
  }
  body.home .ezh-hero .ezh-hero__in,
  body.page-id-18 .ezh-hero .ezh-hero__in,
  body.home .ez-tpl .ezh-hero__in,
  body.page-id-18 .ez-tpl .ezh-hero__in {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 1.6rem !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.home .ezh-hero .e-con,
  body.page-id-18 .ezh-hero .e-con,
  body.home .ezh-hero .ezh-hero__copy,
  body.page-id-18 .ezh-hero .ezh-hero__copy,
  body.home .ezh-hero .ezh-hero__media,
  body.page-id-18 .ezh-hero .ezh-hero__media {
    width: 100% !important;
    max-width: 100% !important;
  }
  body.home .ezh-hero .ezh-hero__copy,
  body.page-id-18 .ezh-hero .ezh-hero__copy,
  body.home .ezh-hero .ezh-hero__copy.e-con,
  body.page-id-18 .ezh-hero .ezh-hero__copy.e-con,
  body.home .ezh-hero .ezh-hero__copy > .e-con-inner,
  body.page-id-18 .ezh-hero .ezh-hero__copy > .e-con-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.35rem !important;
    row-gap: 1.35rem !important;
    --widgets-spacing: 1.35rem !important;
    --widgets-spacing-row: 1.35rem !important;
  }
  /* Explicit block spacing — Elementor widget margins often collapse gap */
  body.home .ezh-hero .ezh-hero__copy > .elementor-element,
  body.page-id-18 .ezh-hero .ezh-hero__copy > .elementor-element,
  body.home .ezh-hero .ezh-hero__copy > .e-con-inner > .elementor-element,
  body.page-id-18 .ezh-hero .ezh-hero__copy > .e-con-inner > .elementor-element {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  body.home .ezh-hero .ez-eyebrow,
  body.page-id-18 .ezh-hero .ez-eyebrow,
  body.home .ezh-hero .ez-eyebrow .elementor-heading-title,
  body.page-id-18 .ezh-hero .ez-eyebrow .elementor-heading-title {
    font-size: 0.7rem !important;
    letter-spacing: 0.05em !important;
    margin: 0 0 0.25rem !important;
  }
  body.home .ezh-hero h1.elementor-heading-title,
  body.page-id-18 .ezh-hero h1.elementor-heading-title {
    font-size: clamp(1.45rem, 6vw, 1.8rem) !important;
    line-height: 1.28 !important;
    margin: 0 !important;
  }
  body.home .ezh-hero .ez-lead,
  body.page-id-18 .ezh-hero .ez-lead {
    margin: 0.2rem 0 0.35rem !important;
  }
  body.home .ezh-hero .ez-lead,
  body.page-id-18 .ezh-hero .ez-lead,
  body.home .ezh-hero .ez-lead p,
  body.page-id-18 .ezh-hero .ez-lead p {
    font-size: 0.9375rem !important;
    line-height: 1.7 !important;
    max-width: none !important;
    color: #3d4a48 !important;
  }
  body.home .ezh-hero .ez-lead p,
  body.page-id-18 .ezh-hero .ez-lead p {
    margin: 0 !important;
  }
  body.home .ezh-hero .ez-cta-actions,
  body.page-id-18 .ezh-hero .ez-cta-actions,
  body.home .ezh-hero .ez-actions,
  body.page-id-18 .ezh-hero .ez-actions,
  body.home .ezh-hero form.ez-search,
  body.page-id-18 .ezh-hero form.ez-search,
  body.home .ezh-hero .ez-search,
  body.page-id-18 .ezh-hero .ez-search {
    width: 100% !important;
    max-width: none !important;
  }
  /* Full-width stacked CTAs — easier tap targets on phone */
  body.home .ezh-hero .ez-cta-actions,
  body.page-id-18 .ezh-hero .ez-cta-actions,
  body.home .ezh-hero .ez-actions,
  body.page-id-18 .ezh-hero .ez-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.95rem !important;
    margin: 0.75rem 0 0 !important;
  }
  body.home .ezh-hero .ez-cta-actions .ez-btn,
  body.page-id-18 .ezh-hero .ez-cta-actions .ez-btn,
  body.home .ezh-hero .ez-actions .ez-btn,
  body.page-id-18 .ezh-hero .ez-actions .ez-btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.9375rem !important;
    padding-top: 0.9rem !important;
    padding-bottom: 0.9rem !important;
  }
  /* Category cards: 1-col on phone so CTA card button isn't clipped */
  body.home .ez-tpl .ez-grid,
  body.page-id-18 .ez-tpl .ez-grid {
    --ezha-cols: 1 !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.home .ezh-cat--cta .ez-btn,
  body.page-id-18 .ezh-cat--cta .ez-btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Phone hero: drop search — dual CTAs already cover quote + browse */
  body.home .ezh-hero .ez-search,
  body.page-id-18 .ezh-hero .ez-search,
  body.home .ezh-hero form.ez-search,
  body.page-id-18 .ezh-hero form.ez-search {
    display: none !important;
  }
  /* Product plate + room under FAB; proof as calm list */
  body.home .ezh-hero .ezh-hero__media,
  body.page-id-18 .ezh-hero .ezh-hero__media {
    margin-top: 0.15rem !important;
    margin-bottom: 0.5rem !important;
    gap: 1rem !important;
    padding-bottom: 0.25rem !important;
  }
  body.home .ezh-hero .ezh-hero__media .elementor-widget-image img,
  body.page-id-18 .ezh-hero .ezh-hero__media .elementor-widget-image img,
  body.home .ez-tpl .ezh-hero__media .elementor-widget-image img,
  body.page-id-18 .ez-tpl .ezh-hero__media .elementor-widget-image img {
    max-width: 13.5rem !important;
    margin-inline: auto !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0.5rem !important;
  }
  body.home .ezh-hero .ezh-chips,
  body.page-id-18 .ezh-hero .ezh-chips,
  body.home .ez-tpl .ezh-chips,
  body.page-id-18 .ez-tpl .ezh-chips,
  body.home .ezh-hero .ezh-chips .elementor-icon-list-items,
  body.page-id-18 .ezh-hero .ezh-chips .elementor-icon-list-items,
  body.home .ezh-hero .elementor-icon-list-items,
  body.page-id-18 .ezh-hero .elementor-icon-list-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.55rem !important;
    margin: 0 !important;
    padding: 0 0 2.75rem !important; /* clear floating WhatsApp */
    list-style: none !important;
  }
  body.home .ezh-hero .ezh-chips li,
  body.page-id-18 .ezh-hero .ezh-chips li,
  body.home .ez-tpl .ezh-chips li,
  body.page-id-18 .ez-tpl .ezh-chips li,
  body.home .ezh-hero .ezh-chips .elementor-icon-list-item,
  body.page-id-18 .ezh-hero .ezh-chips .elementor-icon-list-item,
  body.home .ezh-hero .elementor-icon-list-item,
  body.page-id-18 .ezh-hero .elementor-icon-list-item {
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.55rem !important;
    font-size: 0.875rem !important;
    line-height: 1.45 !important;
    padding: 0.75rem 0.9rem !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.78) !important;
    border: 1px solid rgba(0, 147, 131, 0.12) !important;
    box-shadow: none !important;
  }
  /* Keep first two proof lines on phone; drop the rest to cut tower height */
  body.home .ezh-hero .ezh-chips li:nth-child(n + 3),
  body.page-id-18 .ezh-hero .ezh-chips li:nth-child(n + 3),
  body.home .ezh-hero .ezh-chips .elementor-icon-list-item:nth-child(n + 3),
  body.page-id-18 .ezh-hero .ezh-chips .elementor-icon-list-item:nth-child(n + 3),
  body.home .ezh-hero .elementor-icon-list-item:nth-child(n + 3),
  body.page-id-18 .ezh-hero .elementor-icon-list-item:nth-child(n + 3) {
    display: none !important;
  }

  body.home .elementor-posts-container,
  body.page-id-18 .elementor-posts-container {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  body.home .elementor-widget-image-box,
  body.page-id-18 .elementor-widget-image-box {
    width: 100% !important;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  body.home .elementor-posts-container,
  body.page-id-18 .elementor-posts-container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* =====================================================================
   PRODUCTS ARCHIVE
   ===================================================================== */
@media (max-width: 767px) {
  body.post-type-archive-product .woocommerce-products-header,
  body.tax-product_cat .woocommerce-products-header,
  body.post-type-archive-product .ez-archive-toolbar,
  body.tax-product_cat .ez-archive-toolbar,
  body.post-type-archive-product .eza-body__in,
  body.tax-product_cat .eza-body__in,
  body.woocommerce-shop .eza-body__in {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  /* Category cards: 1 col on phone (beats .eza-subcats 2-col) */
  body.post-type-archive-product .eza-subcats ul.products,
  body.tax-product_cat .eza-subcats ul.products,
  body.woocommerce-shop .eza-subcats ul.products,
  .ez-tpl .eza-subcats ul.products {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  body.post-type-archive-product .eza-subcats li.product-category,
  body.tax-product_cat .eza-subcats li.product-category {
    width: 100% !important;
  }
  /* Product loop: 1 col on narrow phones */
  body.post-type-archive-product .eza-loop ul.products,
  body.tax-product_cat .eza-loop ul.products,
  body.post-type-archive-product ul.products.columns-4,
  body.tax-product_cat ul.products.columns-4,
  body.post-type-archive-product ul.products:not(.eza-subcats ul.products),
  body.woocommerce-shop ul.products.elementor-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  body.post-type-archive-product ul.products li.product,
  body.tax-product_cat ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
  }
  body.post-type-archive-product .woocommerce-result-count,
  body.post-type-archive-product .woocommerce-ordering {
    width: 100%;
    float: none !important;
    margin: 0 0 0.75rem !important;
  }
  /* Shop hero search — full width stack */
  body.woocommerce-shop .ez-search,
  body.post-type-archive-product .ez-search {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.5rem !important;
  }
  body.woocommerce-shop .ez-search input[type="search"],
  body.post-type-archive-product .ez-search input[type="search"] {
    width: 100% !important;
    min-width: 0 !important;
    opacity: 1 !important;
    padding: 0.7rem 0.85rem !important;
  }
  body.woocommerce-shop .ez-search__btn,
  body.post-type-archive-product .ez-search__btn {
    width: 100% !important;
    padding: 0.7rem 1rem !important;
  }
}

@media (min-width: 481px) and (max-width: 900px) {
  /* Product cards 2-up on larger phones; categories stay 1 until tablet */
  body.post-type-archive-product .eza-loop ul.products,
  body.tax-product_cat .eza-loop ul.products,
  body.woocommerce-shop ul.products.elementor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* =====================================================================
   PDP
   ===================================================================== */
@media (max-width: 900px) {
  body.single-product .ez-pdp-hero-row,
  body.single-product .ez-pdp-hero-row > .e-con-inner {
    flex-direction: column !important;
  }
  body.single-product .ez-pdp-hero-row > .e-con,
  body.single-product .ez-pdp-hero-row > .e-con-inner > .e-con {
    width: 100% !important;
    max-width: 100% !important;
  }
}
@media (max-width: 767px) {
  body.single-product .ez-site-main {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  body.single-product .ez-pdp-crumbs-row {
    padding-top: 1.25rem !important;
  }
  body.single-product .product_title,
  body.single-product h1.product_title {
    font-size: 1.45rem !important;
  }
  body.single-product .ez-pdp-actions {
    flex-direction: column !important;
  }
  body.single-product .ez-pdp-actions .ez-btn {
    width: 100% !important;
    justify-content: center !important;
  }
  body.single-product .ez-pdp-actions__secondary {
    grid-template-columns: 1fr !important;
  }
  body.single-product .ez-rq {
    padding: 1.25rem 1.1rem 1.35rem !important;
    border-radius: 14px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body.single-product .ez-rq__inner {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  body.single-product .ez-rq__title {
    font-size: 1.45rem !important;
  }
  body.single-product table.shop_attributes,
  body.single-product .woocommerce-product-attributes {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* =====================================================================
   APPLICATIONS
   ===================================================================== */
@media (max-width: 767px) {
  body.page-id-463 .ez-apps-hero,
  body.page-applications .ez-apps-hero,
  .ez-apps-scene-hero > .elementor-container {
    flex-direction: column !important;
    min-height: 0 !important;
  }
  body.page-id-463 .ez-apps-hero .e-con,
  .ez-apps-scene-hero > .elementor-container > .e-con,
  .ez-apps-scene-hero__copy,
  .ez-apps-scene-hero__media {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }
  body.page-id-463 .ez-apps-hero .elementor-heading-title,
  .ez-apps-scene-hero .elementor-heading-title {
    font-size: clamp(1.65rem, 6.5vw, 2rem) !important;
  }
  .ez-apps-scene-hero__copy {
    padding: 1.75rem 1.15rem 1.25rem !important;
  }
  .ez-apps-scene-hero__media {
    min-height: 220px !important;
    border-left: 0 !important;
  }
  .ez-apps-scene-hero__badge {
    font-size: 64px !important;
  }
  .page-id-463 .ez-apps-scene__media {
    min-height: 180px !important;
  }
  .ez-apps-panel .elementor-widget-icon-list .elementor-icon-list-items,
  .ez-apps-product-list .elementor-icon-list-items {
    grid-template-columns: 1fr !important;
  }
}

/* =====================================================================
   ABOUT / DOWNLOADS
   ===================================================================== */
@media (max-width: 767px) {
  body.page-id-464 .e-con-inner,
  body.page-about-us .e-con-inner,
  body.page-id-451 .e-con-inner,
  body.page-downloads .e-con-inner {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  body.page-id-451 .ez-dl-hero,
  body.page-downloads .ez-dl-hero {
    padding: 1.75rem 1rem !important;
  }
  body.page-id-451 .ez-dl-panel,
  body.page-downloads .ez-dl-panel,
  body.page-id-451 .ez-dl-steps__list,
  body.page-downloads .ez-dl-steps__list {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  body.page-id-451 .ez-dl-panel__actions,
  body.page-downloads .ez-dl-panel__actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  body.page-id-451 .ez-dl-panel__btn,
  body.page-downloads .ez-dl-panel__btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* =====================================================================
   BLOG / NEWS
   ===================================================================== */
@media (max-width: 767px) {
  body.page-id-453 .e-con-inner,
  body.page-id-465 .e-con-inner,
  body.single-post .e-con-inner {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  body.page-id-453 .elementor-posts-container,
  body.page-id-465 .elementor-posts-container,
  body.blog .elementor-posts-container {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  body.page-id-453 .elementor-element-2487ca18 .elementor-heading-title,
  body.page-id-465 .elementor-element-2487ca18 .elementor-heading-title {
    font-size: 1.85rem !important;
  }
}

/* =====================================================================
   QUOTE / CONTACT
   ===================================================================== */
@media (max-width: 959px) {
  body.page-id-12 .ez-quote,
  body.page-get-a-quote .ez-quote,
  body.page-id-466 .ez-contact,
  body.page-contact .ez-contact {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  body.page-id-12 .ez-quote__grid,
  body.page-get-a-quote .ez-quote__grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  body.page-id-12 .ez-quote__aside,
  body.page-get-a-quote .ez-quote__aside {
    position: static !important;
    order: 2;
  }
  body.page-id-12 .ez-quote__panel,
  body.page-get-a-quote .ez-quote__panel {
    padding: 1.1rem 1rem 1.25rem !important;
  }
}
@media (max-width: 767px) {
  body.page-id-12 .gform_fields,
  body.page-get-a-quote .gform_fields,
  body.page-id-466 .gform_fields,
  body.page-contact .gform_fields {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  body.page-id-12 .gform_fields > .gfield,
  body.page-get-a-quote .gform_fields > .gfield,
  body.page-id-466 .gform_fields > .gfield,
  body.page-contact .gform_fields > .gfield {
    grid-column: 1 / -1 !important;
  }
  body.page-id-12 .gform_footer .gform_button,
  body.page-get-a-quote .gform_footer .gform_button,
  body.page-id-12 .gform_footer .ez-gf-wa-beside,
  body.page-get-a-quote .gform_footer .ez-gf-wa-beside {
    flex: 1 1 100% !important;
  }
}
