/* Inner-page responsive priorities. */

@media (max-width: 1100px) {
  .pdl-page-hero.pdl-hero-product-catalog .pdl-page-hero-grid {
    grid-template-columns: minmax(430px, .95fr) minmax(400px, 1.05fr) !important;
  }

  .pdl-product-workbench {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 26px;
  }
}

@media (max-width: 980px) {
  body .pdl-primary-nav:not(.is-open) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.pdl-menu-open .pdl-primary-nav,
  body .pdl-primary-nav.is-open {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .pdl-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 42px;
  }

  .pdl-footer-contact {
    min-width: 0;
  }

  .pdl-page-hero.pdl-hero-product-catalog .pdl-page-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr) !important;
  }

  .pdl-pouch-type-entry-rail {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .pdl-pouch-type-entry-rail::-webkit-scrollbar {
    display: none;
  }

  .pdl-pouch-type-entry-item {
    flex: 0 0 148px;
    scroll-snap-align: start;
  }

  .pdl-product-workbench {
    grid-template-columns: 1fr;
  }

  .pdl-product-filter-sidebar {
    position: static;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .pdl-mobile-filter-toggle {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 14px;
    color: var(--pdl-inner-ink);
    background: #fff;
    border: 1px solid var(--pdl-inner-line);
    border-radius: 6px;
    box-shadow: 0 8px 22px rgba(18, 52, 81, .07);
    text-align: left;
  }

  .pdl-mobile-filter-toggle span {
    display: grid;
    gap: 2px;
  }

  .pdl-mobile-filter-toggle small {
    color: var(--pdl-inner-muted);
    font-size: .7rem;
  }

  .pdl-mobile-filter-toggle strong {
    font-size: .9rem;
  }

  .pdl-mobile-filter-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--pdl-inner-blue);
  }

  .pdl-product-filter-body {
    display: none;
    gap: 18px;
    margin-top: 10px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--pdl-inner-line);
    border-radius: 6px;
    box-shadow: 0 14px 30px rgba(18, 52, 81, .08);
  }

  .pdl-product-filter-sidebar.is-mobile-open .pdl-product-filter-body {
    display: grid;
  }

  .pdl-product-filter-sidebar .pdl-filter-chip-row,
  .pdl-product-filter-sidebar .is-bag-filter .pdl-filter-chip-row {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
  }

  .pdl-product-filter-sidebar .pdl-filter-chip,
  .pdl-product-filter-sidebar .pdl-filter-chip-row .pdl-filter-chip {
    width: auto !important;
    min-width: 0 !important;
  }

  .pdl-product-gallery-main .pdl-result-toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pdl-product-workbench .pdl-product-result-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pdl-footer-grid {
    grid-template-columns: 1fr;
  }

  .pdl-page-hero.pdl-hero-product-catalog .pdl-page-hero-grid {
    min-height: 0 !important;
    display: block;
  }

  .pdl-hero-product-catalog .pdl-page-hero-copy {
    padding: 34px 0 32px !important;
  }

  .pdl-hero-product-catalog h1 {
    max-width: 100%;
    font-size: clamp(1.85rem, 8vw, 2.35rem) !important;
  }

  .pdl-hero-product-catalog .pdl-hero-lead {
    display: -webkit-box;
    overflow: hidden;
    font-size: .9rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .pdl-page-hero.pdl-hero-product-catalog .pdl-page-hero-media {
    display: none !important;
  }

  .pdl-hero-product-catalog .pdl-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .pdl-hero-product-catalog .pdl-hero-actions .pdl-button {
    width: 100%;
    min-width: 0;
  }

  .pdl-hero-product-catalog .pdl-hero-chips {
    display: none;
  }

  .pdl-pouch-type-entry-section {
    padding: 34px 0 30px;
  }

  .pdl-pouch-type-entry-section .pdl-section-heading {
    margin-bottom: 14px;
  }

  .pdl-pouch-type-entry-section .pdl-section-heading > p {
    display: none;
  }

  .pdl-pouch-type-entry-section .pdl-section-heading h2 {
    font-size: 1.45rem;
  }

  .pdl-pouch-type-entry-item {
    flex-basis: 118px;
    padding: 13px 8px 12px;
  }

  .pdl-pouch-type-entry-media {
    height: 78px;
    margin-bottom: 7px;
  }

  .pdl-pouch-type-entry-item strong {
    font-size: .86rem;
  }

  .pdl-pouch-type-entry-item small {
    display: none;
  }

  .pdl-product-workbench-section {
    padding: 38px 0 46px;
  }

  .pdl-product-workbench {
    gap: 24px;
  }

  .pdl-product-gallery-main .pdl-result-toolbar h2 {
    font-size: 1.55rem;
  }

  .pdl-product-gallery-main .pdl-result-toolbar > p {
    font-size: .8rem;
    line-height: 1.55;
  }

  .pdl-product-workbench .pdl-product-result-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pdl-product-workbench .pdl-product-result-grid.is-short-result-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pdl-product-workbench .pdl-product-result-card {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    min-height: 166px;
    border-radius: 6px;
  }

  .pdl-product-workbench .pdl-product-result-card:hover {
    transform: none;
  }

  .pdl-product-workbench .pdl-product-result-media,
  .pdl-product-workbench .pdl-v2-product-result-grid .pdl-product-result-media {
    width: 124px;
    height: 100%;
    aspect-ratio: 1 / 1 !important;
  }

  .pdl-product-workbench .pdl-product-result-grid.is-short-result-grid .pdl-product-result-media {
    aspect-ratio: 1 / 1 !important;
  }

  .pdl-product-workbench .pdl-product-result-media img,
  .pdl-product-workbench .pdl-v2-product-result-grid .pdl-product-result-media img {
    padding: 10px 10px 6px !important;
  }

  .pdl-product-workbench .pdl-product-image-badge {
    top: 7px;
    left: 7px;
    min-height: 20px;
    padding: 3px 6px;
    font-size: .62rem;
  }

  .pdl-product-workbench .pdl-product-result-body,
  .pdl-product-workbench .pdl-v2-product-result-grid .pdl-product-result-body {
    align-content: center;
    gap: 6px !important;
    padding: 13px 14px !important;
  }

  .pdl-product-workbench .pdl-product-result-body h3,
  .pdl-product-workbench .pdl-v2-product-result-grid h3 {
    display: -webkit-box;
    min-height: 2.5em;
    overflow: hidden;
    font-size: .95rem !important;
    line-height: 1.3 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .pdl-product-workbench .pdl-product-card-summary {
    display: -webkit-box !important;
    min-height: 0;
    font-size: .76rem !important;
    line-height: 1.45 !important;
    -webkit-line-clamp: 2 !important;
  }

  .pdl-product-workbench .pdl-product-result-body > .pdl-text-link {
    display: flex !important;
    margin-top: 0 !important;
    padding-top: 6px;
    font-size: .76rem;
  }

  .pdl-collection-guide-section {
    padding: 48px 0;
    background:
      linear-gradient(180deg, rgba(235, 245, 252, .98), rgba(235, 245, 252, .94)),
      url("../../images/generated/pindary-product-catalog-v1.webp") center / cover no-repeat,
      #ebf5fc;
  }

  .pdl-collection-guide-section .pdl-v2-choice-band {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pdl-collection-guide-section .pdl-v2-choice-copy {
    padding-right: 0;
  }

  .pdl-collection-guide-section .pdl-v2-choice-copy h2 {
    max-width: 13em;
    font-size: 1.7rem;
  }

  .pdl-collection-guide-section .pdl-v2-choice-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdl-collection-guide-section .pdl-v2-choice-list article {
    min-height: 132px;
    padding: 16px 14px;
  }

  .pdl-collection-guide-section .pdl-v2-choice-list article::before {
    margin-bottom: 8px;
  }

  .pdl-collection-guide-section .pdl-v2-choice-list strong {
    font-size: .84rem;
  }

  .pdl-collection-guide-section .pdl-v2-choice-list p {
    margin-bottom: 0;
    font-size: .72rem;
  }

  .pdl-collection-guide-actions {
    margin-top: 18px;
  }

  .pdl-collection-guide-actions .pdl-button {
    flex: 1 1 140px;
  }

  .pdl-seo-copy-section {
    padding: 44px 0;
  }

  .pdl-seo-copy-section .pdl-seo-copy-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pdl-seo-copy-section .pdl-seo-copy-main p:last-child {
    display: none;
  }

  .pdl-v2-seo-section .pdl-v2-seo-copy > p:last-of-type {
    display: none;
  }

  .pdl-seo-copy-section .pdl-seo-copy-aside {
    padding: 18px 0 0;
    border-top: 1px solid var(--pdl-inner-line);
    border-left: 0;
  }
}

@media (max-width: 390px) {
  .pdl-hero-product-catalog .pdl-hero-actions {
    grid-template-columns: 1fr;
  }
}
