/**
 * ASIC Marketplace Pro — Responsive stability layer
 * Loaded after style.css to normalize the legacy rules and keep every template
 * inside the viewport from 320px phones through large desktop displays.
 * @version 3.1.0
 */

/* --------------------------------------------------------------------------
   GLOBAL VIEWPORT / MEDIA SAFETY
---------------------------------------------------------------------------- */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

body.lx-no-scroll {
  overflow: hidden !important;
  touch-action: none;
}

#page,
.site,
.site-content,
.site-main,
.content-area,
.wp-site-blocks,
.entry-content,
.wp-block-post-content,
.is-layout-constrained,
.is-layout-flow,
#main-content,
.lx-site-main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-inline: 0;
}

.lx-fullbleed,
.alignfull.lx-fullbleed,
.lx-topbar,
.lx-header,
.lx-nav-bar,
.lx-hero,
.lx-section,
.lx-page-hero,
.lx-page-content,
.lx-breadcrumb,
.lx-footer {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.lx-container {
  width: min(calc(100% - 40px), 1320px) !important;
  max-width: 1320px !important;
  min-width: 0;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}

img,
svg,
video,
canvas,
iframe,
embed,
object {
  max-width: 100%;
}

iframe,
video {
  width: 100%;
}

pre,
code,
.wp-block-code,
.wp-block-preformatted {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

table {
  max-width: 100%;
}

.lx-entry-content,
.lx-single-content,
.woocommerce,
.woocommerce-page {
  overflow-wrap: anywhere;
}

.lx-entry-content > table,
.lx-single-content > table,
.woocommerce table.shop_table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.screen-reader-text:focus,
.lx-sr-only:focus {
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  overflow: visible;
  padding: 10px 14px;
  background: #fff;
  color: #111;
  z-index: 100000;
}

/* --------------------------------------------------------------------------
   HEADER / TOPBAR / PRIMARY NAVIGATION
---------------------------------------------------------------------------- */
.am-topbar,
.am-header,
.am-nav {
  left: auto;
  right: auto;
}

.am-topbar__inner,
.am-header__inner,
.am-nav__inner,
.am-header-actions,
.am-topbar__promises {
  min-width: 0;
}

.am-topbar__promises {
  overflow: hidden;
}

.am-header {
  position: sticky !important;
  top: 0;
  z-index: 9990;
}

.admin-bar .am-header {
  top: 32px;
}

.am-header__inner > * {
  min-width: 0;
}

.am-brand {
  max-width: 100%;
}

.am-brand .custom-logo,
.am-footer-brand .custom-logo {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain;
}

.am-search,
.am-search .lx-search__form,
.am-search .lx-search__input {
  min-width: 0;
}

.am-search .lx-search-suggest {
  width: 100%;
  max-width: 100%;
}

.am-header-actions {
  flex-wrap: nowrap;
}

.am-nav__inner {
  width: min(calc(100% - 40px), 1320px) !important;
  overflow: visible !important;
}

.am-nav .lx-nav-item,
.am-nav .lx-nav-link {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   MOBILE DRAWER — matches the actual header.php markup
---------------------------------------------------------------------------- */
.lx-mobile-drawer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: 100%;
  z-index: 10050;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: visibility 0s linear .28s, opacity .28s ease;
}

.lx-mobile-drawer.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.lx-mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 20, 26, .58);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.lx-mobile-drawer__panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(390px, 92vw);
  max-width: 100%;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  transform: translate3d(-102%, 0, 0);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 18px 0 55px rgba(0, 0, 0, .22);
}

.lx-mobile-drawer.is-open .lx-mobile-drawer__panel {
  transform: translate3d(0, 0, 0);
}

.lx-mobile-drawer__head {
  position: relative;
  top: auto;
  flex: 0 0 auto;
  min-height: 62px;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  background: #fff;
  color: #222;
  border-bottom: 1px solid #ececec;
}

.am-mobile-brand {
  display: inline-flex;
  align-items: center;
  color: #222 !important;
  line-height: 1.2;
}

.lx-mobile-drawer__close {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  background: #f5f5f5;
  color: #222;
  border: 1px solid #e5e5e5;
  font-size: 25px;
  line-height: 1;
}

.lx-mobile-drawer__close:hover,
.lx-mobile-drawer__close:focus-visible {
  background: #fff4eb;
  color: var(--am-orange, #ff6500);
  border-color: #ffd7bb;
}

.lx-mobile-drawer__search {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px 14px;
  background: #fafafa;
  border-bottom: 1px solid #ececec;
}

.lx-mobile-drawer__search input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  border-radius: 5px;
}

.lx-mobile-drawer__search button {
  min-width: 74px;
  height: 42px;
  padding: 0 14px;
  border-radius: 5px;
}

.lx-mobile-drawer__search .lx-search-suggest {
  grid-column: 1 / -1;
  position: static;
  width: 100%;
  max-height: 260px;
  margin-top: 2px;
  border-radius: 5px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.lx-mobile-drawer__actions {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #ececec;
}

.lx-mobile-drawer__actions a {
  min-width: 0;
  min-height: 42px;
  padding: 8px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  border: 1px solid #e6e6e6;
  border-radius: 5px;
  background: #fff;
  color: #292929;
  font-size: 11px;
  font-weight: 750;
}

.lx-mobile-drawer__actions a:hover,
.lx-mobile-drawer__actions a:focus-visible {
  border-color: #ffc79f;
  background: #fff4eb;
  color: var(--am-orange, #ff6500);
}

.lx-mobile-drawer__tabs {
  position: relative;
  top: auto;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0 14px;
  border-bottom: 1px solid #e9e9e9;
}

.lx-mobile-drawer__tabs > button {
  min-height: 45px;
  padding: 10px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #777;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.lx-mobile-drawer__tabs > button.is-active {
  color: var(--am-orange, #ff6500);
  border-bottom-color: var(--am-orange, #ff6500);
}

.lx-mobile-drawer__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 6px 0;
}

.lx-mobile-drawer__panel-content {
  display: none;
}

.lx-mobile-drawer__panel-content.is-active {
  display: block;
}

.lx-mobile-drawer .lx-mobile-nav {
  margin: 0;
  padding: 4px 12px 12px;
}

.lx-mobile-drawer .lx-mobile-nav__item {
  margin: 0;
  border-bottom: 1px solid #f0f0f0;
}

.lx-mobile-drawer .lx-mobile-nav__item > a {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 11px 10px;
  border-radius: 5px;
  color: #242424;
  font-size: 14px;
  font-weight: 650;
}

.lx-mobile-drawer .lx-mobile-nav__item > a:hover,
.lx-mobile-drawer .lx-mobile-nav__item > a:focus-visible {
  color: var(--am-orange, #ff6500);
  background: #fff4eb;
}

.lx-mobile-drawer__foot {
  flex: 0 0 auto;
  padding: 12px 16px max(16px, env(safe-area-inset-bottom));
  gap: 4px;
  background: #fafafa;
  border-top: 1px solid #ececec;
}

.lx-mobile-drawer__foot a,
.lx-mobile-drawer__foot span {
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   HOMEPAGE / CARD GRIDS
---------------------------------------------------------------------------- */
.am-home,
.am-hero,
.am-promise-strip,
.am-section,
.am-stats-strip,
.am-newsletter {
  min-width: 0;
}

.am-hero__grid,
.am-promise-strip__grid,
.am-category-grid,
.am-products-section ul.products,
.am-bulk-cta__box,
.am-why-grid,
.am-brand-row,
.am-stats-strip__grid,
.am-service-cards__grid,
.am-blog-grid,
.am-newsletter__inner {
  min-width: 0;
}

.am-hero__content,
.am-hero__visual,
.am-category-card,
.am-products-section ul.products li.product,
.am-blog-card,
.am-service-cards__grid > a {
  min-width: 0;
}

.am-hero__visual img {
  max-width: 100%;
}

.am-category-card p,
.am-why-grid p,
.am-service-cards p,
.am-blog-card h3,
.am-blog-card h3 a {
  overflow-wrap: anywhere;
}

.am-products-section ul.products::before,
.am-products-section ul.products::after {
  display: none !important;
}

.am-products-section ul.products li.product {
  float: none !important;
  clear: none !important;
}

.am-products-section ul.products li.product a,
.am-products-section ul.products li.product img {
  max-width: 100%;
}

.am-newsletter form {
  min-width: 0;
}

.am-newsletter input {
  width: 100%;
}

/* --------------------------------------------------------------------------
   FOOTER
---------------------------------------------------------------------------- */
.am-footer {
  overflow: hidden;
}

.am-footer__grid,
.am-footer__bottom,
.am-footer__brand-col,
.am-footer__contact,
.am-footer .lx-footer__col {
  min-width: 0;
}

.am-footer-brand {
  max-width: 100%;
}

.am-footer__contact p,
.am-footer__contact a,
.am-footer__bottom p,
.am-footer__legal {
  overflow-wrap: anywhere;
}

.am-footer .lx-footer__links {
  display: block;
  max-height: none;
  overflow: visible;
}

.am-footer__bottom img {
  max-width: min(260px, 100%) !important;
  height: auto !important;
}

/* --------------------------------------------------------------------------
   GENERIC PAGES / BLOG / FORMS
---------------------------------------------------------------------------- */
.lx-page-content__inner,
.lx-special-page,
.lx-content-card,
.lx-contact-layout,
.lx-contact-side,
.lx-ab,
.lx-ab-hero__grid,
.lx-ab-cta__inner,
.lx-blog-layout,
.lx-single-layout,
.lx-single-article,
.lx-blog-main,
.lx-blog-sidebar {
  min-width: 0;
}

.lx-entry-content img,
.lx-single-content img,
.wp-block-image img {
  height: auto;
}

.lx-entry-content input:not([type="checkbox"]):not([type="radio"]),
.lx-entry-content select,
.lx-entry-content textarea,
.lx-contact-form input:not([type="checkbox"]):not([type="radio"]),
.lx-contact-form select,
.lx-contact-form textarea,
.woocommerce form input:not([type="checkbox"]):not([type="radio"]),
.woocommerce form select,
.woocommerce form textarea {
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   WOOCOMMERCE — SHOP, SINGLE PRODUCT, CART, CHECKOUT, ACCOUNT
---------------------------------------------------------------------------- */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0 !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
  display: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  float: none !important;
}

.woocommerce div.product,
.woocommerce div.product div.summary,
.woocommerce div.product div.images,
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells {
  min-width: 0;
  max-width: 100%;
}

.woocommerce div.product div.images img {
  width: 100%;
  height: auto;
}

.woocommerce div.product form.cart,
.woocommerce div.product form.cart .variations,
.woocommerce div.product form.cart .variations tbody,
.woocommerce div.product form.cart .variations tr,
.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td {
  max-width: 100%;
}

.woocommerce div.product form.cart .variations select {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
}

.woocommerce .quantity .qty {
  max-width: 90px;
}

.woocommerce-cart .cart-collaterals,
.woocommerce-checkout .col2-set,
.woocommerce-account .woocommerce {
  min-width: 0;
}

.woocommerce form .form-row-first,
.woocommerce form .form-row-last {
  min-width: 0;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   TABLET
---------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .lx-container,
  .am-nav__inner {
    width: min(calc(100% - 32px), 1320px) !important;
  }

  .am-header__inner {
    grid-template-columns: minmax(170px, 205px) minmax(240px, 1fr) auto !important;
    gap: 14px !important;
  }

  .am-header-action--track,
  .am-header-action--wishlist {
    display: none !important;
  }

  .am-nav .lx-nav-link {
    padding-inline: 10px !important;
    font-size: 10px !important;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .am-nav {
    display: none !important;
  }

  .am-header .lx-menu-toggle {
    display: flex !important;
  }

  .am-header__inner {
    grid-template-columns: 42px minmax(150px, auto) minmax(0, 1fr) auto !important;
    gap: 11px !important;
    min-height: 74px;
  }

  .am-brand {
    justify-self: start !important;
  }

  .am-search {
    grid-column: 3;
    grid-row: 1;
  }

  .am-header-actions {
    grid-column: 4;
    grid-row: 1;
  }

  .am-header-action--track,
  .am-header-action--wishlist,
  .am-header-action:not(.lx-header-action--cart) {
    display: none !important;
  }

  .am-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  }

  .am-footer__grid {
    grid-template-columns: 1.25fr repeat(3, minmax(0, .8fr));
    gap: 24px;
  }

  .am-footer__contact {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
  }

  .am-footer__contact h2 {
    grid-column: 1 / -1;
  }

  .lx-shop-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
  }
}

/* --------------------------------------------------------------------------
   MOBILE / SMALL TABLET
---------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .lx-container,
  .am-nav__inner {
    width: min(calc(100% - 24px), 1320px) !important;
  }

  .admin-bar .am-header {
    top: 46px;
  }

  .am-topbar {
    min-height: 29px;
  }

  .am-topbar__inner {
    min-height: 29px;
    justify-content: center;
  }

  .am-topbar__currency {
    display: none;
  }

  .am-topbar__promises {
    width: 100%;
    justify-content: center;
    gap: 0;
  }

  .am-topbar__promises span {
    display: none !important;
    font-size: 9px;
    text-align: center;
  }

  .am-topbar__promises span:first-child {
    display: inline-flex !important;
  }

  .am-header {
    position: sticky !important;
  }

  .am-header__inner {
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    grid-template-rows: auto auto;
    gap: 9px 10px !important;
    min-height: 0;
    padding: 9px 0 10px !important;
  }

  .am-header .lx-menu-toggle {
    grid-column: 1;
    grid-row: 1;
    width: 42px;
    height: 42px;
    display: flex !important;
    justify-self: start;
    border: 1px solid #e6e6e6;
    background: #fafafa;
  }

  .am-brand {
    grid-column: 2;
    grid-row: 1;
    width: auto !important;
    max-width: 100%;
    justify-self: center !important;
    overflow: hidden;
  }

  .am-brand__mark {
    width: 30px;
    height: 30px;
  }

  .am-brand__copy strong {
    font-size: 18px;
    letter-spacing: .07em;
  }

  .am-brand__copy small {
    margin-top: 4px;
    font-size: 6px;
    letter-spacing: .22em;
  }

  .am-header .custom-logo {
    max-height: var(--lx-logo-mobile-height, 38px) !important;
    max-width: min(190px, 100%) !important;
  }

  .am-header-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .am-header-action:not(.lx-header-action--cart) {
    display: none !important;
  }

  .am-header-action.lx-header-action--cart {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0 !important;
    border: 1px solid #e6e6e6;
    background: #fafafa;
  }

  .am-header-action .lx-header-action__txt {
    display: none !important;
  }

  .am-search {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100%;
  }

  .am-search .lx-search__form {
    height: 42px !important;
  }

  .am-search .lx-search__btn {
    width: 48px !important;
    min-width: 48px !important;
  }

  .am-search .lx-search-suggest {
    top: calc(100% + 4px);
    max-height: min(390px, 55vh);
  }

  .am-hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 30px !important;
    padding-bottom: 24px !important;
  }

  .am-hero__content {
    padding: 0;
    text-align: center;
  }

  .am-kicker {
    font-size: 11px;
  }

  .am-hero h1 {
    font-size: clamp(36px, 12vw, 54px);
    line-height: 1;
  }

  .am-hero__lead {
    max-width: 620px;
    margin-inline: auto;
    font-size: 13px;
  }

  .am-hero__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 540px;
    margin-inline: auto;
    text-align: left;
  }

  .am-hero__actions {
    justify-content: center;
  }

  .am-hero__actions .lx-btn {
    flex: 1 1 160px;
    max-width: 260px;
    min-width: 0;
  }

  .am-hero__visual {
    min-height: 0;
    padding-top: 14px;
  }

  .am-hero__visual img {
    width: min(100%, 570px);
    transform: none;
  }

  .am-promise-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .am-promise-strip__grid > div {
    min-width: 0;
    padding: 12px;
  }

  .am-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .am-category-card {
    min-height: 0;
  }

  .am-products-head {
    align-items: flex-start;
    gap: 12px;
  }

  .am-products-head > a {
    flex: 0 0 auto;
  }

  .am-product-tabs {
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .am-product-tabs::-webkit-scrollbar {
    display: none;
  }

  .am-products-section ul.products,
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .am-products-section ul.products li.product,
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    padding: 9px !important;
  }

  .am-products-section ul.products li.product img,
  .woocommerce ul.products li.product img,
  .woocommerce-page ul.products li.product img {
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }

  .am-loop-specs {
    grid-template-columns: 1fr;
  }

  .am-loop-specs span:nth-child(n+3) {
    display: none;
  }

  .am-bulk-cta__box {
    grid-template-columns: 1fr;
    padding: 0 16px 18px !important;
    text-align: center;
  }

  .am-bulk-cta__visual {
    width: calc(100% + 32px);
    margin-inline: -16px;
  }

  .am-bulk-cta .lx-btn {
    justify-self: center;
  }

  .am-why-grid,
  .am-brand-row,
  .am-stats-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .am-service-cards__grid,
  .am-blog-grid {
    grid-template-columns: 1fr;
  }

  .am-blog-card {
    grid-template-columns: minmax(112px, 38%) minmax(0, 1fr);
  }

  .am-newsletter__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .am-newsletter form {
    width: 100%;
    flex-basis: auto;
  }

  .am-footer__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .am-footer__brand-col {
    padding-bottom: 18px;
  }

  .am-footer .lx-footer__col {
    border-top: 1px solid #e9e9e9;
  }

  .am-footer .lx-footer__col-title {
    width: 100%;
    min-height: 48px;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
  }

  .am-footer .lx-footer__col-icon {
    display: block;
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }

  .am-footer .lx-footer__col-icon::before,
  .am-footer .lx-footer__col-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform .2s ease, opacity .2s ease;
  }

  .am-footer .lx-footer__col-icon::before {
    width: 12px;
    height: 1.5px;
  }

  .am-footer .lx-footer__col-icon::after {
    width: 1.5px;
    height: 12px;
  }

  .am-footer .lx-footer__col-title[aria-expanded="true"] .lx-footer__col-icon::after {
    opacity: 0;
  }

  .am-footer .lx-footer__links {
    display: block;
    max-height: 0;
    overflow: hidden;
    padding: 0 !important;
    opacity: 0;
    transition: max-height .28s ease, opacity .2s ease, padding .28s ease;
  }

  .am-footer .lx-footer__col-title[aria-expanded="true"] + .lx-footer__links {
    max-height: 520px;
    padding: 2px 0 14px !important;
    opacity: 1;
  }

  .am-footer__contact {
    display: block;
    grid-column: auto;
    padding-top: 20px;
    border-top: 1px solid #e9e9e9;
  }

  .am-footer__bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 11px;
    padding: 18px 0;
    text-align: center;
  }

  .am-footer__legal {
    justify-content: center;
    flex-wrap: wrap;
  }

  .lx-shop-layout,
  .lx-contact-grid,
  .lx-contact-layout,
  .lx-blog-layout,
  .lx-single-layout,
  .lx-ab-hero__grid,
  .lx-ab-cta__inner {
    grid-template-columns: 1fr !important;
  }

  .lx-sidebar {
    order: 2;
  }

  .woocommerce div.product div.images,
  .woocommerce div.product div.summary {
    width: 100% !important;
    float: none !important;
  }

  .woocommerce div.product div.summary {
    margin-top: 22px;
  }

  .woocommerce .col2-set .col-1,
  .woocommerce .col2-set .col-2,
  .woocommerce-page .col2-set .col-1,
  .woocommerce-page .col2-set .col-2,
  .woocommerce form .form-row-first,
  .woocommerce form .form-row-last {
    width: 100% !important;
    float: none !important;
  }

  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review,
  .woocommerce-checkout #order_review_heading {
    width: 100% !important;
    float: none !important;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation {
    margin-bottom: 22px;
  }
}

/* --------------------------------------------------------------------------
   SMALL PHONES
---------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .lx-container,
  .am-nav__inner {
    width: min(calc(100% - 20px), 1320px) !important;
  }

  .am-brand__copy strong {
    font-size: 16px;
  }

  .am-brand__copy small {
    letter-spacing: .16em;
  }

  .am-header .custom-logo {
    max-width: min(165px, 100%) !important;
  }

  .am-hero h1 {
    font-size: clamp(34px, 11.5vw, 46px);
  }

  .am-hero__metrics {
    gap: 8px;
  }

  .am-hero__metrics div {
    padding-left: 8px;
  }

  .am-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .am-hero__actions .lx-btn {
    width: 100%;
    max-width: none;
  }

  .am-promise-strip__grid {
    grid-template-columns: 1fr;
  }

  .am-promise-strip__grid > div {
    border-right: 0 !important;
    border-bottom: 1px solid var(--am-line, #e7e7e7);
  }

  .am-promise-strip__grid > div:last-child {
    border-bottom: 0;
  }

  .am-section-head h2,
  .am-products-head h2 {
    font-size: 20px !important;
  }

  .am-products-head {
    display: block;
  }

  .am-products-head > a {
    display: inline-flex;
    margin-top: 10px;
  }

  .am-category-card {
    padding: 14px 9px;
  }

  .am-category-card h3 {
    font-size: 12px;
  }

  .am-category-card p {
    font-size: 10px;
  }

  .am-products-section ul.products li.product .woocommerce-loop-product__title,
  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    font-size: 11px !important;
    line-height: 1.35;
  }

  .am-products-section ul.products li.product .price,
  .woocommerce ul.products li.product .price,
  .woocommerce-page ul.products li.product .price {
    font-size: 14px !important;
  }

  .am-why-grid,
  .am-stats-strip__grid {
    grid-template-columns: 1fr;
  }

  .am-why-grid article,
  .am-stats-strip__grid > div {
    border-right: 0 !important;
    border-bottom: 1px solid var(--am-line, #e7e7e7) !important;
  }

  .am-why-grid article:last-child,
  .am-stats-strip__grid > div:last-child {
    border-bottom: 0 !important;
  }

  .am-brand-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .am-blog-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .am-newsletter form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .am-newsletter input {
    min-width: 0;
  }

  .am-footer__bottom img {
    max-width: 210px !important;
  }

  .lx-single-title,
  .lx-page-hero__title,
  .lx-ab-hero__title {
    overflow-wrap: anywhere;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products {
    gap: 8px !important;
  }

  .woocommerce-cart table.cart .product-thumbnail {
    display: none;
  }
}

@media (max-width: 360px) {
  .lx-container,
  .am-nav__inner {
    width: min(calc(100% - 16px), 1320px) !important;
  }

  .am-brand__mark {
    display: none;
  }

  .am-brand__copy strong {
    font-size: 15px;
  }

  .am-header .custom-logo {
    max-width: 145px !important;
  }

  .lx-mobile-drawer__panel {
    width: 94vw;
  }

  .lx-mobile-drawer__actions {
    grid-template-columns: 1fr;
  }

  .am-category-grid,
  .am-products-section ul.products,
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Motion accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Header markup uses data attributes rather than the legacy has-dropdown class. */
@media (min-width: 981px) {
  .am-nav .lx-nav-item:hover > .lx-dropdown,
  .am-nav .lx-nav-item:focus-within > .lx-dropdown,
  .am-nav .lx-nav-item.is-open > .lx-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Final mobile header correction: the legacy stylesheet hid search below 768px. */
@media (max-width: 768px) {
  .am-topbar {
    padding: 0 !important;
  }

  .am-search {
    display: block !important;
  }
}
