@media (min-width: 1024px) {
  :root body.family-site.plf-desktop-design #main :is(.desktop-home-category, .catalog-category-card):has(source[data-desktop-catalog-art]),
  :root body.family-site.plf-desktop-design #main .catalog-browser[data-catalog-category-page="true"] .catalog-subcategory-card:has(source[data-desktop-catalog-art]) {
    background: transparent !important;
    border: 0 !important;
  }

  :root body.family-site.plf-desktop-design #main .catalog-category-grid:has(source[data-desktop-catalog-art]) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  :root body.family-site.plf-desktop-design.home #main #assortment .assortment-grid:has(source[data-desktop-catalog-art]) {
    column-gap: clamp(24px, 2vw, 36px) !important;
  }

  :root body.family-site.plf-desktop-design.home:is(.plf-theme-light, .plf-theme-sunset) #assortment .assortment-grid:has(source[data-desktop-catalog-art]) .desktop-home-help {
    background: #555a3d !important;
  }

  :root body.family-site.plf-desktop-design.home:is(.plf-theme-light, .plf-theme-sunset) #assortment .assortment-grid:has(source[data-catalog-pencil-art="desktop"]) .desktop-home-help {
    background: #496575 !important;
  }

  :root body.family-site.plf-desktop-design.home #main #assortment .desktop-home-category .assortment-item:has(source[data-desktop-catalog-art]),
  :root body.family-site.plf-desktop-design #main .catalog-category-card:has(source[data-desktop-catalog-art]) {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    min-height: 0 !important;
    height: auto !important;
  }

  :root body.family-site.plf-desktop-design #main :is(.assortment-bg, .catalog-category-image):has(source[data-desktop-catalog-art]) {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 212px;
    aspect-ratio: 16 / 10;
    background: transparent !important;
  }

  :root body.family-site.plf-desktop-design.home #main #assortment .assortment-bg:has(source[data-desktop-catalog-art]) {
    max-height: 188px;
    aspect-ratio: 16 / 9;
  }

  :root body.family-site.plf-desktop-design #main :is(.assortment-bg, .catalog-category-image):has(source[data-desktop-catalog-art])::after {
    display: none !important;
  }

  :root body.family-site.plf-desktop-design #main picture:has(source[data-desktop-catalog-art]) > img {
    background: transparent !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
  }

  :root body.family-site.plf-desktop-design #main .desktop-home-category:has(source[data-desktop-catalog-art]) .assortment-item-caption,
  :root body.family-site.plf-desktop-design #main .catalog-category-card:has(source[data-desktop-catalog-art]) .catalog-category-body {
    position: static !important;
    width: auto !important;
    min-height: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 4px 6px 10px !important;
    text-align: center;
    opacity: 1 !important;
  }

  :root body.family-site.plf-desktop-design.home #main #assortment .desktop-home-category:has(source[data-desktop-catalog-art]) h3,
  :root body.family-site.plf-desktop-design #main .catalog-category-card:has(source[data-desktop-catalog-art]) h3 {
    color: var(--plf-palette-heading, var(--desktop-ink)) !important;
    font: 400 .875rem/1.45 var(--font-interface, Manrope, sans-serif) !important;
    max-width: none !important;
    margin: 0 !important;
    overflow-wrap: anywhere;
  }

  :root body.family-site.plf-desktop-design #main .desktop-home-category:has(source[data-desktop-catalog-art]) .desktop-home-subcategory-toggle,
  :root body.family-site.plf-desktop-design #main .catalog-category-card:has(source[data-desktop-catalog-art]) .catalog-category-photo-action {
    display: none !important;
  }

  :root body.family-site.plf-desktop-design #main .catalog-subcategory-image:has(source[data-desktop-catalog-art]) {
    background: transparent !important;
  }

  :root body.family-site.plf-desktop-design #main .catalog-browser[data-catalog-category-page="true"] .catalog-browser-inner:has(> .catalog-subcategory-grid source[data-desktop-catalog-art]) {
    container: plf-subcategories / inline-size;
    width: calc(100% - 2 * clamp(24px, 3.4vw, 64px)) !important;
    max-width: none !important;
  }

  :root body.family-site.plf-desktop-design #main .catalog-browser[data-catalog-category-page="true"] .catalog-subcategory-grid:has(source[data-desktop-catalog-art]) {
    --subcategory-columns: 4;
    --subcategory-gap: 18px;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    margin-inline: auto !important;
    gap: 12px var(--subcategory-gap) !important;
  }

  :root body.family-site.plf-desktop-design #main .catalog-browser[data-catalog-category-page="true"] .catalog-subcategory-grid:has(source[data-desktop-catalog-art]) > .catalog-subcategory-card {
    flex: 0 0 calc((100% - (var(--subcategory-columns) - 1) * var(--subcategory-gap)) / var(--subcategory-columns));
    min-width: 0;
  }

  @container plf-subcategories (min-width: 1160px) {
    :root body.family-site.plf-desktop-design #main .catalog-browser[data-catalog-category-page="true"] .catalog-subcategory-grid:has(source[data-desktop-catalog-art]) { --subcategory-columns: 5; }
  }

  @container plf-subcategories (min-width: 1460px) {
    :root body.family-site.plf-desktop-design #main .catalog-browser[data-catalog-category-page="true"] .catalog-subcategory-grid:has(source[data-desktop-catalog-art]) { --subcategory-columns: 6; }
  }

  @container plf-subcategories (min-width: 1900px) {
    :root body.family-site.plf-desktop-design #main .catalog-browser[data-catalog-category-page="true"] .catalog-subcategory-grid:has(source[data-desktop-catalog-art]) { --subcategory-columns: 7; }
  }

  :root body.family-site.plf-desktop-design #main .catalog-browser[data-catalog-category-page="true"] .catalog-subcategory-card:has(source[data-desktop-catalog-art]) {
    padding: 8px !important;
  }

  :root body.family-site.plf-desktop-design #main .catalog-browser[data-catalog-category-page="true"] .catalog-subcategory-image:has(source[data-desktop-catalog-art]) {
    max-height: 166px;
  }

  :root body.family-site.plf-desktop-design #main .catalog-subcategory-image:has(source[data-desktop-catalog-art]) picture {
    display: block;
    height: 100%;
  }

  :root body.family-site.plf-desktop-design #main .catalog-browser[data-catalog-category-page="true"] .catalog-subcategory-card:has(source[data-desktop-catalog-art]) .catalog-subcategory-copy {
    align-items: center;
    padding: 5px 2px 2px !important;
    text-align: center;
  }

  :root body.family-site.plf-desktop-design #main .catalog-browser[data-catalog-category-page="true"] .catalog-subcategory-card:has(source[data-desktop-catalog-art]) strong {
    font: 400 .875rem/1.45 var(--font-interface, Manrope, sans-serif) !important;
  }

  :root body.family-site.plf-desktop-design #main .catalog-browser[data-catalog-category-page="true"] .catalog-subcategory-card:has(source[data-desktop-catalog-art]) .catalog-subcategory-action {
    display: none !important;
  }

  :root body.family-site.plf-desktop-design #main .catalog-browser[data-catalog-category-page="true"] .catalog-subcategory-card:has(source[data-desktop-catalog-art]):hover:not(:focus-visible) {
    outline: none !important;
  }

  :root body.family-site.plf-desktop-design #main .desktop-home-submenu .desktop-subcategory-thumbnail {
    flex: 0 0 58px;
  }

  :root body.family-site.plf-desktop-design #main .desktop-home-submenu nav a:has(.desktop-subcategory-thumbnail) {
    background: transparent !important;
    border: 0 !important;
    font-weight: 400;
  }

  :root body.family-site.plf-desktop-design #main .desktop-home-submenu .desktop-subcategory-thumbnail img {
    width: 58px;
    height: 48px;
  }

  :root body.family-site.plf-desktop-design #main .desktop-catalog-sidebar .catalog-subcategory-card:has(source[data-desktop-catalog-art]) {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
  }

  :root body.family-site.plf-desktop-design #main .desktop-catalog-sidebar .catalog-subcategory-card:has(source[data-desktop-catalog-art]) .desktop-line-icon {
    display: none !important;
  }

  :root body.family-site.plf-desktop-design #main .desktop-catalog-sidebar .catalog-subcategory-image:has(source[data-desktop-catalog-art]) {
    display: block !important;
    width: 38px !important;
    height: 34px !important;
  }
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  :root body.family-site.plf-desktop-design #main :is(.desktop-home-category, .catalog-category-card, .catalog-subcategory-card, .desktop-home-submenu a):hover picture:has(source[data-desktop-catalog-art]) > img {
    filter: drop-shadow(0 0 1px color-mix(in srgb, var(--plf-palette-ink, var(--desktop-ink)) 22%, transparent)) !important;
  }

  :root body.family-site.plf-desktop-design #main :is(.desktop-home-category, .catalog-category-card, .catalog-subcategory-card, .desktop-home-submenu a) picture:has(source[data-catalog-hover-color][data-catalog-hover-active]) > img {
    filter: saturate(1.2) contrast(1.04) !important;
  }
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :root body.family-site.plf-desktop-design #main picture:has(source[data-desktop-catalog-art]) > img {
    transition: transform 180ms ease-out, filter 180ms ease-out;
  }

  :root body.family-site.plf-desktop-design #main :is(.desktop-home-category, .catalog-category-card, .catalog-subcategory-card, .desktop-home-submenu a):hover picture:has(source[data-desktop-catalog-art]) > img {
    transform: scale(1.035) !important;
  }
}
