@media (max-width: 1023px) {
  .em-home-hero-car {
    left: 43%;
    width: min(56vw, 560px);
  }

  .em-home-hero-copy {
    right: 24px;
    width: 42vw;
  }

  .em-blog-layout {
    grid-template-columns: minmax(0, 2.2fr) minmax(220px, 1fr);
  }

  .em-masthead-row {
    min-height: 72px;
    grid-template-columns: 52px minmax(0, 1fr) 62px;
    grid-template-areas:
      "toggle logo actions"
      "search search search";
    gap: 10px;
    padding-block: 4px 9px;
  }

  .em-mobile-toggle { grid-area: toggle; }
  .em-logo-link { grid-area: logo; justify-content: center; }
  .em-logo-link img { width: 150px; max-height: 58px; }
  .em-primary-nav { display: none; }
  .em-mobile-toggle { display: grid; }
  .em-header-actions { grid-area: actions; }
  .em-masthead-row > .em-search { grid-area: search; width: 100%; }
  .em-cart-label { display: none; }
  .em-cart-link { min-width: 54px; border: 0; grid-template-areas: "icon count"; }
  .em-category-nav,
  .em-account-link { display: none; }

  .em-mobile-backdrop {
    position: fixed;
    z-index: 89;
    inset: 0;
    display: block;
    background: rgba(10, 12, 14, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .em-mobile-panel {
    position: fixed;
    z-index: 90;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(86vw, 360px);
    display: block;
    overflow-y: auto;
    padding: 20px;
    background: #fff;
    transform: translateX(-102%);
    transition: transform 220ms ease;
  }

  .em-menu-open,
  .em-filter-open { overflow: hidden; }

  .em-menu-open .em-mobile-backdrop,
  .em-filter-open .em-mobile-backdrop { opacity: 1; visibility: visible; }
  .em-menu-open .em-mobile-panel { transform: none; }

  .em-mobile-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--em-border);
  }

  .em-mobile-close {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .em-mobile-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-block: 14px;
    border-bottom: 1px solid var(--em-border);
  }

  .em-mobile-tab {
    min-height: 44px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    font-weight: 600;
  }

  .em-mobile-tab.is-active { border-color: var(--em-primary); }
  .em-mobile-pane[hidden] { display: none; }

  .em-mobile-menu li,
  .em-mobile-panel .em-category-menu li {
    margin: 0;
    border-bottom: 1px solid var(--em-border);
  }

  .em-mobile-menu a,
  .em-mobile-panel .em-category-menu a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 8px 4px;
    font-size: 13px;
    font-weight: 500;
  }

  .home .em-category-menu-wrap { display: none; }

  .em-shop-layout,
  .em-shop-layout.is-single {
    grid-template-columns: minmax(0, 1fr);
  }

  .em-shop-sidebar {
    position: fixed;
    z-index: 95;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(88vw, 360px);
    overflow-y: auto;
    padding: 18px;
    background: #fff;
    box-shadow: var(--em-shadow);
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .em-filter-open .em-shop-sidebar { transform: none; }
  body.em-filter-open { overflow: hidden; }
  .em-shop-filter-toggle { display: inline-flex; }

  .em-filter-panel-header {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -6px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--em-border);
  }

  .em-filter-panel-header strong {
    font-size: 14px;
    text-transform: uppercase;
  }

  .em-filter-close {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--em-surface-soft);
    color: var(--em-ink);
  }

  .em-filter-close .em-icon {
    width: 24px;
    height: 24px;
    font-size: 24px;
  }

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

  .em-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .em-footer-bottom-row { grid-template-columns: 1fr; text-align: center; }
  .em-social-list { justify-content: center; }
  .em-payment-image { margin-inline: auto; }
}

@media (max-width: 767px) {
  body { font-size: 14px; }
  .em-topbar { font-size: 10px; }
  .em-topbar-track { animation-duration: 21s; }
  .em-topbar-group {
    gap: 36px;
    padding-inline: 36px;
  }
  .em-container { width: calc(100% - 24px); max-width: var(--em-container); }

  .em-row,
  .em-row-inner {
    width: calc(100% - 24px);
    max-width: var(--em-container);
  }

  .em-row-inner { width: 100%; max-width: none; }

  .em-col,
  .em-col-inner {
    width: var(--em-col-width-sm, 100%);
    flex-basis: var(--em-col-width-sm, 100%);
    padding-inline: 8px;
  }

  .page-id-1360 .em-row.is-large > .em-col {
    padding-inline: 8px;
  }

  .page-id-1360 .em-row.is-large > .em-col:last-child {
    margin-top: 20px;
  }

  .page-id-1360 .em-row.is-large > .em-col:last-child .em-col-content:hover {
    transform: none;
  }

  .page-id-1360 .em-section-title {
    font-size: 30px;
  }

  .page-id-1360 .elementor-heading-title span[style*="60px"] {
    font-size: clamp(38px, 12vw, 60px) !important;
  }

  .page-id-1360 .elementor-widget-text-editor span[style*="36px"] {
    font-size: clamp(24px, 8vw, 36px) !important;
  }

  .em-home-hero {
    min-height: 560px;
    background-position: center;
  }

  .em-home-hero-car {
    top: 31%;
    left: 50%;
    width: min(82vw, 540px);
  }

  .em-home-hero-copy {
    top: auto;
    right: 20px;
    bottom: 34px;
    left: 20px;
    width: auto;
    transform: none;
    text-align: center;
  }

  .em-home-hero-copy h1 {
    margin-bottom: 18px;
    font-size: clamp(32px, 10vw, 48px);
  }

  .em-home-promos {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .em-home-promo > div {
    width: 52%;
    padding: 20px;
  }

  .em-banner { min-height: 240px; }
  .page-id-1358 .em-banner {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }
  .em-text-box { width: min(86%, var(--em-box-width, 86%)); }

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

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 12px;
  }

  .woocommerce ul.products li.product .button {
    width: calc(100% - 16px);
    padding-inline: 8px;
    white-space: normal;
  }

  .woocommerce .woocommerce-ordering,
  .woocommerce .woocommerce-result-count {
    float: none;
  }

  .em-blog-layout { grid-template-columns: 1fr; }
  .em-post-grid { padding-right: 0; }
  .em-blog-sidebar {
    padding-top: 28px;
    padding-left: 0;
    border-top: 1px solid var(--em-border);
    border-left: 0;
  }
  .em-news-header { padding-block: 26px 14px; }
  .em-news-item {
    grid-template-columns: 1fr;
    margin-bottom: 28px;
  }
  .em-news-content { padding: 18px 4px 0; }
  .em-news-date { left: 10px; }
  .em-policy { padding-block: 52px 40px; }
  .em-policy-title { margin-bottom: 28px; }
  .em-policy-list { grid-template-columns: 1fr; }
  .em-policy-item {
    min-height: 110px;
    grid-template-columns: 64px 72px minmax(0, 1fr);
    padding: 18px 8px;
    border-right: 0;
    border-bottom: 1px solid var(--em-border);
  }
  .em-policy-item:last-child { border-bottom: 0; }
  .em-policy-number { font-size: 2.6rem; }
  .em-policy-icon img { width: 60px; height: 60px; }
  .em-footer-grid { grid-template-columns: 1fr; }
  .em-footer-main { padding-block: 44px; }
  .em-footer-logo { width: 180px; }
  .em-back-to-top { right: 14px; bottom: 14px; }
}

/* Product details use a compact, desktop-only information sidebar. */
@media (max-width: 849px) {
  .em-product-sidebar {
    display: none;
  }
}

@media (min-width: 550px) and (max-width: 849px) {
  .em-col,
  .em-col-inner {
    width: var(--em-col-width-md, var(--em-col-width));
    flex-basis: var(--em-col-width-md, var(--em-col-width));
  }

  .em-col > .em-col-content,
  .em-col-inner > .em-col-content {
    padding: var(--em-col-padding-md, var(--em-col-padding-lg, 0));
  }

  .em-col.is-first-medium,
  .em-col-inner.is-first-medium {
    order: -1;
  }

  .page-id-1358 .em-banner {
    min-height: 400px;
    aspect-ratio: auto;
  }
}

@media (min-width: 850px) {
  .em-shop-layout.is-single {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .em-col > .em-col-content,
  .em-col-inner > .em-col-content {
    padding: var(--em-col-padding-lg, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .em-topbar-track {
    animation: none;
    transform: none;
  }
  .em-topbar-group[aria-hidden="true"] { display: none; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 782px) {
  .admin-bar .em-site-header {
    top: 46px;
  }
}
