:root {
  --desktop-commerce-header-offset: 5.7rem;
  --desktop-commerce-focus: rgba(86, 199, 233, 0.42);
}

.desktop-search-shortcut,
.desktop-search-discovery,
.desktop-action-label,
.desktop-checkout-progress,
.desktop-order-confidence {
  display: none;
}

@media (min-width: 992px) {
  .desktop-checkout-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 58rem;
    margin: 0 auto 1.5rem;
    padding: 0.35rem;
    background: #eef3f8;
    border: 1px solid rgba(16, 34, 53, 0.1);
    border-radius: 1rem;
  }

  .desktop-checkout-progress__step {
    position: relative;
    display: flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.7rem 1rem;
    color: #66778a;
    border-radius: 0.75rem;
    font-size: 0.82rem;
    font-weight: 720;
    text-decoration: none;
  }

  .desktop-checkout-progress__step.is-complete {
    color: #0a7658;
  }

  .desktop-checkout-progress__step.is-current {
    color: #0a4fae;
    background: #fff;
    box-shadow: 0 0.4rem 1.2rem rgba(8, 29, 50, 0.08);
  }

  .desktop-checkout-progress__number {
    display: grid;
    width: 1.75rem;
    height: 1.75rem;
    place-items: center;
    color: inherit;
    background: currentColor;
    border-radius: 999px;
    font-size: 0.68rem;
  }

  .desktop-checkout-progress__number span {
    color: #fff;
  }

  .desktop-checkout-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
  }

  .desktop-checkout-field--full,
  .desktop-checkout-field--billing_address,
  .desktop-checkout-field--shipping_address,
  .desktop-checkout-field--customer_note,
  .desktop-checkout-field--fulfillment_type,
  .desktop-checkout-field--marketing {
    grid-column: 1 / -1;
  }

  .desktop-checkout-fields textarea.form-control {
    resize: vertical;
  }

  .desktop-order-confidence {
    display: grid;
    gap: 0.65rem;
    margin: 1rem 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid rgba(16, 34, 53, 0.1);
    list-style: none;
  }

  .desktop-order-confidence li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: #66778a;
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .desktop-order-confidence i {
    margin-top: 0.05rem;
    color: #138a67;
  }
}

@media (min-width: 1200px) {
  .market-global-search {
    overflow: visible;
  }

  .market-global-search > button {
    border-radius: 0 0.78rem 0.78rem 0;
  }

  .desktop-search-shortcut {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.22rem;
    margin-right: 0.45rem;
    color: #718092;
    pointer-events: none;
  }

  .desktop-search-shortcut kbd {
    min-width: 1.45rem;
    padding: 0.18rem 0.32rem;
    color: #607083;
    background: #eef2f6;
    border: 1px solid rgba(16, 34, 53, 0.12);
    border-bottom-width: 2px;
    border-radius: 0.38rem;
    box-shadow: none;
    font-family: inherit;
    font-size: 0.62rem;
    font-weight: 750;
    text-align: center;
  }

  .desktop-search-discovery {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    left: 0;
    z-index: 1084;
    padding: 1rem;
    color: #14283c;
    background: rgba(255, 255, 255, 0.995);
    border: 1px solid rgba(20, 40, 60, 0.14);
    border-radius: 1rem;
    box-shadow: 0 1.6rem 4rem rgba(4, 20, 36, 0.24);
  }

  .desktop-search-discovery[hidden] {
    display: none !important;
  }

  .desktop-search-discovery__section + .desktop-search-discovery__section {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(20, 40, 60, 0.09);
  }

  .desktop-search-discovery__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
  }

  .desktop-search-discovery__head strong {
    color: #102235;
    font-size: 0.78rem;
    font-weight: 800;
  }

  .desktop-search-discovery__head small {
    color: #7a8999;
    font-size: 0.68rem;
  }

  .desktop-search-recent,
  .desktop-search-destinations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .desktop-search-recent button,
  .desktop-search-destinations a {
    display: flex;
    min-width: 0;
    min-height: 3rem;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    color: #20384e;
    background: #f7faff;
    border: 1px solid rgba(18, 103, 232, 0.08);
    border-radius: 0.75rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
  }

  .desktop-search-recent button:hover,
  .desktop-search-recent button:focus-visible,
  .desktop-search-destinations a:hover,
  .desktop-search-destinations a:focus-visible {
    color: #0a4fae;
    background: #eef5ff;
    border-color: rgba(18, 103, 232, 0.2);
    transform: translateY(-1px);
  }

  .desktop-search-recent i,
  .desktop-search-destinations i {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    place-items: center;
    color: #1267e8;
    background: rgba(18, 103, 232, 0.09);
    border-radius: 0.6rem;
  }

  .desktop-catalog-control-deck {
    position: sticky;
    top: var(--desktop-commerce-header-offset);
    z-index: 1015;
    margin: -0.2rem -0.45rem 1rem;
    padding: 0.45rem;
    background: rgba(248, 251, 255, 0.92);
    border: 1px solid transparent;
    border-radius: 1.15rem;
    backdrop-filter: blur(14px);
    transition: box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
  }

  .desktop-catalog-control-deck.is-stuck {
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(16, 34, 53, 0.1);
    box-shadow: 0 1rem 2.5rem rgba(8, 29, 50, 0.12);
  }

  .desktop-catalog-control-deck .market-catalog-toolbar {
    margin-bottom: 0;
    box-shadow: none;
  }

  .desktop-catalog-control-deck .market-active-filters {
    margin: 0;
    padding: 0.65rem 0.55rem 0.2rem;
  }

  .market-filter-panel {
    top: calc(var(--desktop-commerce-header-offset) + 0.55rem);
  }

  .market-view-toggle button {
    width: 2.45rem;
    height: 2.45rem;
  }

  .market-product-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .market-product-card__actions > a:first-child,
  .market-product-card__actions > .market-card-quick-view {
    flex: 1 1 calc(50% - 0.25rem);
  }

  .market-product-card__actions > form,
  .market-product-card__actions > a:not(:first-child) {
    display: block;
    min-width: 0;
    flex: 1 1 4.4rem;
  }

  .market-product-card__actions .btn,
  .market-card-quick-view > summary {
    display: inline-flex;
    width: 100%;
    min-height: 2.7rem;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding-inline: 0.55rem;
  }

  .desktop-action-label {
    display: inline;
    overflow: hidden;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .market-product-card__actions > form,
  .market-product-card__actions > a:not(:first-child),
  .market-product-card__actions > .market-card-quick-view:nth-child(n + 3) {
    position: relative;
  }

  .market-product-card__actions > form::before,
  .market-product-card__actions > a:nth-child(n + 3)::before {
    position: absolute;
    top: -0.28rem;
    right: 0;
    left: 0;
    height: 1px;
    background: rgba(16, 34, 53, 0.08);
    content: "";
  }

  .market-catalog-grid.is-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-catalog-grid.is-compact .market-product-card__description,
  .market-catalog-grid.is-compact .market-product-card__signals,
  .market-catalog-grid.is-compact .market-product-card__decision-specs {
    display: none;
  }

  .market-catalog-grid.is-compact .market-product-card__media,
  .market-catalog-grid.is-compact .market-product-card__image-link img,
  .market-catalog-grid.is-compact .market-product-card__placeholder {
    min-height: 10.5rem;
  }

  .market-catalog-grid.is-compact .market-product-card__body {
    padding: 0.8rem;
  }

  .market-catalog-grid.is-compact .desktop-action-label {
    display: none;
  }

  .market-catalog-grid.is-compact .market-product-card__actions > a:first-child {
    flex-basis: calc(100% - 3.2rem);
  }

  .market-catalog-grid.is-compact .market-product-card__actions > .market-card-quick-view {
    flex: 0 0 2.7rem;
  }

  .desktop-cart-summary .product-purchase-card,
  .checkout-summary-column .product-purchase-card {
    top: calc(var(--desktop-commerce-header-offset) + 1rem);
  }

  .desktop-cart-table .cart-quantity-input {
    min-height: 2.75rem;
    font-variant-numeric: tabular-nums;
  }

  .desktop-cart-table td,
  .desktop-cart-table th {
    padding-block: 1rem;
  }

  .desktop-cart-table tbody tr {
    transition: background-color 180ms ease;
  }

  .desktop-cart-table tbody tr:hover {
    background: #fbfdff;
  }
}

@media (min-width: 1280px) and (max-width: 1499.98px) {
  .market-navbar__inner {
    gap: 0.55rem;
  }

  .market-category-trigger {
    padding-inline: 0.75rem;
  }

  .market-global-search {
    min-width: 13rem;
    flex-basis: 21rem;
  }

  .market-nav-action {
    min-width: 4.5rem;
    gap: 0.28rem;
    padding-inline: 0.35rem;
  }

  .market-nav-action span {
    display: flex;
  }

  .market-nav-action small {
    display: none;
  }
}

@media (min-width: 1500px) {
  .market-nav-action.is-active,
  .market-nav-action[aria-current="page"] {
    color: #fff;
    background: rgba(86, 199, 233, 0.14);
    box-shadow: inset 0 0 0 1px rgba(86, 199, 233, 0.24);
  }
}

@media (min-width: 1600px) {
  .market-catalog-shell .site-main > .container {
    max-width: 1520px;
  }

  .market-catalog-layout {
    grid-template-columns: 18rem minmax(0, 1fr);
    gap: 1.5rem;
  }

  .market-catalog-grid.is-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) and (max-height: 760px) {
  .desktop-search-discovery {
    max-height: min(62vh, 30rem);
    overflow-y: auto;
  }

  .market-filter-panel {
    max-height: calc(100vh - var(--desktop-commerce-header-offset) - 1.2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  .desktop-search-recent button,
  .desktop-search-destinations a,
  .desktop-catalog-control-deck,
  .desktop-cart-table tbody tr {
    transition: none !important;
    transform: none !important;
  }
}
