/*
Theme Name: YAOSENDA Industrial
Description: An English dust collection parts catalog and inquiry site for YAOSENDA.
Version: 1.3.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: yaosenda-industrial
*/

.admin-bar .header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) {
  .admin-bar .header { top: 0; }
}

.wp-page-content { max-width: 850px; }
.wp-page-content > * + * { margin-top: 1.1em; }
.list-view .product-body:only-child,
.related-section .product-body:only-child { grid-column: 1 / -1; border-left: 0; }

@media (min-width: 701px) {
  .product-menu-ranges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 901px) {
  .showcase-range-strip .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .showcase-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .showcase-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-range-strip a:last-child { grid-column: 1 / -1; }
  .header .nav-row { flex-wrap: nowrap; gap: 18px; }
  .header #main-nav { display: flex; width: auto; gap: 0 14px; padding: 0; }
  .header #main-nav > a,
  .header .nav-products > summary { font-size: .84rem; white-space: nowrap; }

  .header .product-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: min(740px, 100%);
    max-height: 65vh;
    overflow-y: auto;
    margin: 0;
    box-shadow: 0 16px 32px #061c302b;
  }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 128px; }

  .header .nav-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 12px;
    padding-top: 9px;
  }

  .header .brand { justify-self: start; }
  .header .inquiry-access { grid-area: 1 / 2; }

  .header #main-nav {
    grid-column: 1 / -1;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 8px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 430px) {
  .header #main-nav { gap: 0 4px; }
  .header #main-nav > a,
  .header .nav-products > summary { font-size: .73rem; }
  .header .nav-products > summary { gap: 4px; }
  .header .nav-products > summary > svg { width: 10px; height: 10px; }
}

.esp-hero .showcase-hero-backdrop {
  inset: 0;
  width: 100%;
  object-position: center 46%;
  opacity: 1;
}

.esp-hero::before {
  background: linear-gradient(90deg,
    #091e30c7 0%, #091e30c7 34%, #091e3085 56%,
    #091e3029 76%, #091e3008 100%);
}

.esp-hero .showcase-hero-grid {
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(515px, 40vw, 650px);
}

@media (max-width: 900px) {
  .esp-hero::before {
    background: linear-gradient(90deg,
      #091e30c9 0%, #091e30c9 46%, #091e3045 82%, #091e3012 100%);
  }

  .esp-hero .showcase-hero-copy > p:not(.showcase-eyebrow):not(.showcase-hero-note) {
    max-width: 420px;
  }
}

@media (max-width: 700px) {
  .esp-hero .showcase-hero-backdrop {
    object-position: center 55%;
  }

  .esp-hero::before {
    background: linear-gradient(180deg,
      #091e30e0 0%, #091e30de 28%, #091e30d0 48%,
      #091e3096 62%, #091e3000 100%);
  }

  .esp-hero .showcase-hero-grid {
    min-height: 0;
    padding-bottom: clamp(175px, 50vw, 280px);
  }
}
