
/* Mobile viewport containment and an unmistakable left-hand menu control. */
@media (max-width: 1024px) {
  html,
  body,
  #page.site-wrapper {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip !important;
  }

  #page.site-wrapper,
  .site-main,
  .ylory-woocommerce-page,
  .woocommerce,
  .woocommerce-MyAccount-content,
  form.woocommerce-checkout,
  #customer_details,
  #order_review {
    min-width: 0;
    max-width: 100%;
  }

  .ylory-header-inner {
    min-width: 0 !important;
  }

  .ylory-mobile-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    order: -1;
    border: 1px solid #ffdec7 !important;
    border-radius: 12px !important;
    background: #fff5ed !important;
    color: var(--ylory-orange) !important;
  }

  .ylory-mobile-toggle:focus-visible {
    outline: 2px solid var(--ylory-orange);
    outline-offset: 2px;
  }

  .ylory-mobile-toggle .hamburger-box {
    display: block;
    flex: 0 0 22px;
    width: 22px;
    height: 18px;
  }

  .ylory-mobile-toggle .hamburger-inner,
  .ylory-mobile-toggle .hamburger-inner::before,
  .ylory-mobile-toggle .hamburger-inner::after {
    left: 0;
    right: auto;
    width: 22px;
    height: 3px !important;
    border-radius: 2px !important;
    background: currentColor !important;
  }

  .ylory-header-brand {
    min-width: 0 !important;
    flex-shrink: 1 !important;
  }

  .ylory-header-brand a {
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
  }

  .ylory-header-brand img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
  }

  .ylory-header-search {
    min-width: 0 !important;
  }

  .ylory-header-actions {
    flex-shrink: 0 !important;
  }
}

@media (max-width: 768px) {
  .ylory-main-header,
  .ylory-floating-header {
    padding: 0 8px !important;
  }

  .ylory-header-inner,
  body.single-product .ylory-header-inner {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 92px;
    gap: 8px !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .ylory-header-search {
    display: none !important;
  }

  .ylory-header-brand {
    margin: 0 !important;
    max-width: 100% !important;
  }

  .ylory-header-brand img {
    max-height: 36px !important;
  }

  .ylory-header-actions {
    justify-content: flex-end !important;
    gap: 4px !important;
  }
}

