/* 14.11.2026: compact mobile catalog and the selected Graphite navigation. */
@media (max-width: 980px) {
  html body.cw-mobile-nav-enabled #cw-mobile-navigation {
    padding: 3px 5px !important;
    border-radius: 20px;
    background-color: var(--cw-button-black);
    background-image: var(--cw-button-gloss);
    border-color: var(--cw-button-edge);
    box-shadow: var(--cw-button-shadow);
  }

  html body.cw-mobile-nav-enabled #cw-mobile-navigation :is(a, button) {
    min-height: 44px;
    gap: 3px;
    color: #f5f5f5 !important;
  }

  html body.cw-mobile-nav-enabled #cw-mobile-navigation .cw-nav-current {
    background: rgba(255, 255, 255, .1) !important;
    color: #fff !important;
  }

  html body.cw-mobile-nav-enabled,
  html body#page-product-view.cw-mobile-nav-enabled {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    --cw-mobile-nav-space: calc(70px + env(safe-area-inset-bottom, 0px));
  }

  html body.cw-mobile-nav-enabled .cky-btn-revisit-wrapper {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 1023px) {
  /* About 11px from Buy to the next row, previously 54px. Keep image sizes. */
  html body.products .product-list-container > .product-item,
  html body#page-index .product-list-container > .product-item {
    padding-bottom: 5px !important;
  }

  html body .product-list-container > .product-item > .product-wrapper {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  html body .product-item > .product-wrapper > .product-hover-wrapper-dpstyle {
    margin-bottom: 1px !important;
  }

  html body .product-item > .product-wrapper > .product-hover-wrapper-dpstyle .button.add-to-cart {
    height: 38px !important;
    min-height: 38px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    align-items: center !important;
    justify-content: center !important;
  }
}
