/* Desktop-specific polish and safe defaults. */
@media (min-width: 721px) {
  body:not(.phone-preview) .catalog-toolbar {
    width: min(1290px, calc(100% - 64px));
    margin: 0 auto 18px;
    padding: 8px 12px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 30px rgba(20, 28, 45, 0.06);
  }

  body:not(.phone-preview) .catalog-toolbar-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    max-width: none;
    margin-inline: 0;
  }

  body:not(.phone-preview) .catalog-filter-form {
    gap: 8px;
    overflow: hidden;
    min-width: 0;
  }

  body:not(.phone-preview) .mobile-storefront-tabs {
    order: 2;
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    min-height: 38px;
    padding: 0 2px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid rgba(226, 228, 233, 0.78);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 128, 145, 0.28) transparent;
  }

  body:not(.phone-preview) .mobile-storefront-tabs.is-scrollable::before,
  body:not(.phone-preview) .mobile-storefront-tabs.is-scrollable::after,
  body:not(.phone-preview) .desktop-subcategory-row.is-scrollable::before,
  body:not(.phone-preview) .desktop-subcategory-row.is-scrollable::after {
    position: sticky;
    z-index: 2;
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    height: 28px;
    margin-block: auto;
    border-radius: 999px;
    color: #0058bc;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 22px rgba(20, 28, 45, 0.12);
    font-size: 1rem;
    font-weight: 950;
    line-height: 1;
    pointer-events: none;
  }

  body:not(.phone-preview) .mobile-storefront-tabs.is-scrollable::before,
  body:not(.phone-preview) .desktop-subcategory-row.is-scrollable::before {
    content: "‹";
    left: 0;
    order: -1;
  }

  body:not(.phone-preview) .mobile-storefront-tabs.is-scrollable::after,
  body:not(.phone-preview) .desktop-subcategory-row.is-scrollable::after {
    content: "›";
    right: 0;
    order: 999;
  }

  body:not(.phone-preview) .mobile-storefront-tabs.is-at-start::before,
  body:not(.phone-preview) .desktop-subcategory-row.is-at-start::before,
  body:not(.phone-preview) .mobile-storefront-tabs.is-at-end::after,
  body:not(.phone-preview) .desktop-subcategory-row.is-at-end::after {
    opacity: 0;
    flex-basis: 0;
    width: 0;
    overflow: hidden;
  }

  body:not(.phone-preview) .mobile-storefront-tabs::-webkit-scrollbar {
    display: block;
    height: 6px;
  }

  body:not(.phone-preview) .mobile-storefront-tabs::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(120, 128, 145, 0.28);
  }

  body:not(.phone-preview) .mobile-storefront-tabs::-webkit-scrollbar-track {
    background: transparent;
  }

  body:not(.phone-preview) .mobile-storefront-tabs > * {
    flex: 0 0 auto;
  }

  body:not(.phone-preview) .mobile-storefront-tabs a {
    position: relative;
    padding: 6px 0 9px;
    color: #4f5b6a;
    font-size: 0.96rem;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
  }

  body:not(.phone-preview) .mobile-storefront-tabs a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: #0058bc;
    transform: translateX(-50%);
    transition: width 0.2s ease;
  }

  body:not(.phone-preview) .mobile-storefront-tabs a.is-active {
    color: #0058bc;
  }

  body:not(.phone-preview) .mobile-storefront-tabs a.is-active::after {
    width: 34px;
  }

  body:not(.phone-preview) .mobile-storefront-tabs .mobile-tab-all {
    padding-inline: 12px;
    border-radius: 999px;
    color: #0058bc;
    background: rgba(0, 88, 188, 0.08);
  }

  body:not(.phone-preview) .mobile-storefront-tabs .mobile-tab-sale {
    padding-inline: 12px;
    border-radius: 999px;
    color: #b91c1c;
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.98), rgba(254, 226, 226, 0.98));
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.26);
  }

  body:not(.phone-preview) .toolbar-primary-row {
    order: 1;
    grid-template-columns: minmax(210px, 1fr) 70px;
    gap: 6px;
    align-items: end;
    justify-content: start;
  }

  body:not(.phone-preview) .toolbar-primary-row:has(.desktop-inline-admin-filters) {
    grid-template-columns: minmax(180px, 290px) 70px minmax(220px, 1fr);
  }

  body:not(.phone-preview) .mobile-filter-trigger,
  body:not(.phone-preview) .advanced-filter {
    display: none !important;
  }

  body:not(.phone-preview) .desktop-inline-admin-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    align-items: end;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 1px;
    mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent);
    scrollbar-width: none;
  }

  body:not(.phone-preview) .desktop-inline-admin-filters::-webkit-scrollbar {
    display: none;
  }

  body:not(.phone-preview) .desktop-inline-admin-filters .filter-pill {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 0.72rem;
    box-shadow: none;
  }

  body:not(.phone-preview) .desktop-inline-admin-filters .filter-pill input[type="checkbox"] {
    width: 13px;
    height: 13px;
  }

  body:not(.phone-preview) .desktop-subcategory-filters {
    order: 3;
    display: grid;
    gap: 7px;
    padding: 8px 2px 0;
    border-top: 1px solid rgba(226, 228, 233, 0.68);
  }

  body:not(.phone-preview) .desktop-subcategory-row {
    position: relative;
    display: flex;
    gap: 7px;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1px;
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 128, 145, 0.28) transparent;
  }

  body:not(.phone-preview) .desktop-subcategory-row::-webkit-scrollbar {
    display: block;
    height: 6px;
  }

  body:not(.phone-preview) .desktop-subcategory-row::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(120, 128, 145, 0.28);
  }

  body:not(.phone-preview) .desktop-subcategory-row::-webkit-scrollbar-track {
    background: transparent;
  }

  body:not(.phone-preview) .desktop-subcategory-label {
    flex: 0 0 auto;
    color: #7a8494;
    font-size: 0.76rem;
    font-weight: 900;
  }

  body:not(.phone-preview) .desktop-subcategory-chip {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(193, 198, 215, 0.68);
    border-radius: 999px;
    color: #4f5b6a;
    background: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  }

  body:not(.phone-preview) .desktop-subcategory-chip:hover,
  body:not(.phone-preview) .desktop-subcategory-chip.is-active {
    color: #0058bc;
    border-color: rgba(0, 88, 188, 0.28);
    background: rgba(0, 88, 188, 0.08);
  }

  body:not(.phone-preview) .search-field {
    gap: 4px;
    font-size: 0.72rem;
  }

  body:not(.phone-preview) .search-field input {
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 12px;
  }

  body:not(.phone-preview) .mobile-query-button {
    min-height: 34px;
    padding-inline: 14px;
    border-radius: 999px;
    font-size: 0.8rem;
  }

  body:not(.phone-preview) .advanced-filter summary {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.84rem;
  }

  body:not(.phone-preview) .mobile-summary-label {
    display: none !important;
  }

  body:not(.phone-preview) .desktop-summary-label {
    display: inline;
  }

  body:not(.phone-preview) .advanced-filter-body {
    grid-template-columns: minmax(460px, 1fr) minmax(174px, 220px) minmax(220px, 0.86fr);
    width: min(980px, calc(100vw - 72px));
    padding: 12px;
    border-radius: 22px;
  }

  body:not(.phone-preview) .product-category-filter {
    display: none;
  }

  body:not(.phone-preview) .mobile-level-category-filter {
    display: grid;
  }

  body:not(.phone-preview) .mobile-category-levels {
    grid-template-columns: repeat(3, minmax(132px, 1fr));
    gap: 8px;
  }

  body:not(.phone-preview) .mobile-category-level summary {
    min-height: 42px;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.94);
  }

  body:not(.phone-preview) .mobile-category-options {
    max-height: min(42vh, 280px);
    overflow: auto;
    border-radius: 16px;
  }

  body:not(.phone-preview) .filter-card {
    padding: 10px;
    border-radius: 16px;
  }

  body:not(.phone-preview) .filter-panel-actions {
    padding-top: 4px;
  }

  body:not(.phone-preview) .filter-panel-actions .primary-button,
  body:not(.phone-preview) .filter-clear-option {
    min-height: 36px;
    border-radius: 999px;
    font-size: 0.82rem;
  }

  body:not(.phone-preview) .desktop-view-picker {
    display: none !important;
  }

  body:not(.phone-preview) .view-choice {
    width: 31px;
    height: 28px;
  }

  body:not(.phone-preview) .toolbar-action-cluster {
    align-self: start;
    gap: 6px;
    padding-top: 23px;
    min-width: 0;
  }

  body:not(.phone-preview) .catalog-action-button {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.78rem;
  }

  body:not(.phone-preview) .catalog-content,
  body:not(.phone-preview) .section-heading {
    max-width: 1290px;
    margin-inline: auto;
  }

  body:not(.phone-preview) .product-grid {
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(clamp(168px, 12.5vw, 218px), 1fr));
  }

  body:not(.phone-preview) .product-grid.columns-large,
  body:not(.phone-preview) .product-grid.columns-medium,
  body:not(.phone-preview) .product-grid.columns-small {
    grid-template-columns: repeat(auto-fill, minmax(clamp(168px, 12.5vw, 218px), 1fr));
  }

  body:not(.phone-preview) .product-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(20, 28, 45, 0.06);
  }

  body:not(.phone-preview) .product-image-frame {
    aspect-ratio: 1 / 1;
    background: #f8fafc;
  }

  body:not(.phone-preview) .product-image-frame > img:not(.review-badge) {
    object-fit: contain;
    background: #fff;
  }

  body:not(.phone-preview) .mobile-image-tiles {
    display: none !important;
  }

  body:not(.phone-preview) .product-card-footer {
    align-items: flex-start;
    min-height: 0;
    padding: 9px 10px 4px;
  }

  body:not(.phone-preview) .product-card-data {
    display: grid;
    width: 100%;
    gap: 6px;
  }

  body:not(.phone-preview) .product-title-row strong {
    font-size: 0.98rem;
    line-height: 1.12;
  }

  body:not(.phone-preview) .product-value-tags {
    gap: 5px;
  }

  body:not(.phone-preview) .product-value-tags span {
    min-height: 23px;
    padding: 3px 8px;
    font-size: 0.78rem;
    font-weight: 900;
  }

  body:not(.phone-preview) .product-value-tags .price-value {
    font-size: 0.82rem;
  }

  body:not(.phone-preview) .product-card-actions {
    margin-top: auto;
    padding: 0 10px 8px;
  }

  body:not(.phone-preview) .cart-add-button,
  body:not(.phone-preview) .cart-stepper-control,
  body:not(.phone-preview) .cart-card-final {
    min-height: 28px;
    padding-block: 4px;
    font-size: 0.74rem;
  }

  body:not(.phone-preview) .inline-upload {
    margin-top: 0;
    padding: 7px 10px 9px;
    background: #fbfbfd;
  }

  body:not(.phone-preview) .inline-upload .ghost-button {
    width: 100%;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
  }

  body:not(.phone-preview) .single-upload-name {
    display: none;
    margin-top: 5px;
    color: #6b7280;
    font-size: 0.74rem;
    font-weight: 800;
  }
}
