/* OZT56 mobile catalog fix:
   1) hide duplicate menu row on catalog
   2) close-looking mobile header state
   3) catalog products 2 per row on mobile
*/

@media (max-width: 960px) {
  body.ozt-filter-catalog header:not(#ozt-global-header),
  body.ozt-filter-catalog .site-header:not(#ozt-global-header),
  body.ozt-filter-catalog .main-nav:not(.ozt-gh-nav),
  body.ozt-filter-catalog main > nav,
  body.ozt-filter-catalog #root > nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  body.ozt-filter-catalog #ozt-global-header:not(.is-open) .ozt-gh-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
  }

  body.ozt-filter-catalog #ozt-global-header.is-open .ozt-gh-nav {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: 100% !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 12px 0 4px !important;
    border-top: 1px solid rgba(0,0,0,.08) !important;
  }

  body.ozt-filter-catalog #ozt-global-header:not(.is-open) .ozt-gh-phone,
  body.ozt-filter-catalog #ozt-global-header:not(.is-open) .ozt-gh-btn {
    display: none !important;
  }

  body.ozt-filter-catalog #ozt-global-header.is-open .ozt-gh-phone,
  body.ozt-filter-catalog #ozt-global-header.is-open .ozt-gh-btn {
    display: flex !important;
  }
}

@media (max-width: 760px) {
  body.ozt-filter-catalog #ozt-filter-catalog-root {
    padding-top: 24px !important;
  }

  body.ozt-filter-catalog .oztf-wrap {
    max-width: calc(100% - 20px) !important;
  }

  body.ozt-filter-catalog .oztf-title {
    font-size: 30px !important;
    line-height: 1.05 !important;
  }

  body.ozt-filter-catalog .oztf-lead {
    font-size: 12px !important;
    margin-bottom: 18px !important;
  }

  body.ozt-filter-catalog .oztf-toolbar {
    position: static !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 10px !important;
    margin-bottom: 18px !important;
  }

  body.ozt-filter-catalog .oztf-layout {
    display: block !important;
  }

  body.ozt-filter-catalog .oztf-sidebar {
    position: static !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-bottom: 18px !important;
  }

  body.ozt-filter-catalog .oztf-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.ozt-filter-catalog .oztf-card {
    min-height: 0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.09) !important;
  }

  body.ozt-filter-catalog .oztf-img {
    height: 118px !important;
  }

  body.ozt-filter-catalog .oztf-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  body.ozt-filter-catalog .oztf-body {
    padding: 9px !important;
  }

  body.ozt-filter-catalog .oztf-badge {
    margin-bottom: 7px !important;
    padding: 3px 5px !important;
    font-size: 8px !important;
    line-height: 1.1 !important;
  }

  body.ozt-filter-catalog .oztf-body h3 {
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    margin-bottom: 7px !important;
  }

  body.ozt-filter-catalog .oztf-body p {
    font-size: 10.5px !important;
    line-height: 1.35 !important;
    margin-bottom: 10px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 5 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  body.ozt-filter-catalog .oztf-btn {
    height: 34px !important;
    font-size: 10px !important;
    padding: 0 6px !important;
  }

  body.ozt-filter-catalog .oztf-meta {
    gap: 10px !important;
    margin-bottom: 12px !important;
  }

  body.ozt-filter-catalog .oztf-count {
    font-size: 12px !important;
  }

  body.ozt-filter-catalog .oztf-reset {
    height: 32px !important;
    padding: 0 10px !important;
    font-size: 10px !important;
  }
}

@media (max-width: 380px) {
  body.ozt-filter-catalog .oztf-grid {
    gap: 8px !important;
  }

  body.ozt-filter-catalog .oztf-img {
    height: 104px !important;
  }

  body.ozt-filter-catalog .oztf-body {
    padding: 8px !important;
  }

  body.ozt-filter-catalog .oztf-body h3 {
    font-size: 10.8px !important;
  }

  body.ozt-filter-catalog .oztf-body p {
    font-size: 10px !important;
    -webkit-line-clamp: 4 !important;
  }
}
