@media (min-width: 768px) {
  body:has(.desktop-sales) main {
    box-sizing: border-box;
    max-width: none;
    padding: 16px 22px 24px;
    width: 100%;
  }

  .desktop-sales,
  .desktop-sales * {
    box-sizing: border-box;
  }

  .desktop-sales {
    color: var(--ds-color-text, #15233b);
    min-width: 0;
  }

  .desktop-sales button,
  .desktop-sales input,
  .desktop-sales select,
  .desktop-sales textarea {
    font: inherit;
  }

  .desktop-sales-title h2 {
    font-size: 1.28rem;
    line-height: 1.2;
    margin: 0 0 3px;
  }

  .desktop-sales-title p {
    color: #6f7e93;
    font-size: 0.84rem;
    margin: 0 0 14px;
  }

  .desktop-sales-toolbar {
    display: grid;
    gap: 10px;
    grid-template-columns:
      minmax(300px, 2.25fr) 52px repeat(3, minmax(126px, 0.72fr))
      minmax(118px, 0.55fr);
    margin-bottom: 14px;
  }

  .desktop-sales-search,
  .desktop-sales-select,
  .desktop-sales .desktop-barcode-button,
  .desktop-sales-favorite {
    background: #fff;
    border: 1px solid #dce4ec;
    border-radius: 10px;
    min-height: 52px;
  }

  .desktop-sales-search {
    align-items: center;
    display: flex;
    gap: 10px;
    padding: 0 12px;
  }

  .desktop-sales-search > svg {
    color: #607086;
    flex: 0 0 20px;
    width: 20px;
  }

  .desktop-sales-search input {
    background: transparent;
    border: 0;
    color: #172238;
    min-width: 0;
    outline: 0;
    width: 100%;
  }

  .desktop-sales-search:focus-within {
    border-color: #15b98e;
    box-shadow: 0 0 0 3px rgba(49, 208, 173, 0.13);
  }

  .desktop-sales-search button {
    align-items: center;
    background: transparent;
    border: 0;
    color: #76859a;
    display: flex;
    height: 34px;
    justify-content: center;
    padding: 0;
    width: 34px;
  }

  .desktop-sales-search button svg {
    width: 17px;
  }

  .desktop-sales-select {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 6px 11px;
  }

  .desktop-sales-select span {
    color: #758398;
    font-size: 0.65rem;
    line-height: 1;
  }

  .desktop-sales-select select {
    background: transparent;
    border: 0;
    color: #18253b;
    cursor: pointer;
    font-size: 0.77rem;
    font-weight: 700;
    min-width: 0;
    outline: 0;
    padding: 4px 0 0;
    width: 100%;
  }

  .desktop-sales .desktop-barcode-button,
  .desktop-sales-favorite {
    align-items: center;
    color: #26354c;
    cursor: pointer;
    display: flex;
    gap: 7px;
    justify-content: center;
    padding: 0 12px;
  }

  .desktop-sales .desktop-barcode-button svg,
  .desktop-sales-favorite svg {
    width: 20px;
  }

  .desktop-sales-favorite[aria-pressed="true"] {
    background: #e9f9f5;
    border-color: #21c49b;
    color: #008e70;
  }

  .desktop-sales-layout {
    align-items: start;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1.7fr) minmax(370px, 1fr);
  }

  .desktop-sales-products,
  .desktop-sales-cart,
  .desktop-recent-products,
  .desktop-sales-catalog {
    min-width: 0;
  }

  .desktop-sales-products {
    display: grid;
    gap: 12px;
  }

  .desktop-recent-products,
  .desktop-sales-catalog,
  .desktop-sales-cart {
    background: #fff;
    border: 1px solid #dde5ed;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(26, 39, 62, 0.035);
  }

  .desktop-recent-products {
    padding: 10px 12px 12px;
  }

  .desktop-recent-products header h3,
  .desktop-sales-catalog > header h3,
  .desktop-sales-cart > header h3 {
    font-size: 0.9rem;
    margin: 0;
  }

  .desktop-recent-products header {
    margin-bottom: 8px;
  }

  .desktop-recent-products > div {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .desktop-recent-product {
    align-items: center;
    background: #fff;
    border: 1px solid #e1e7ee;
    border-radius: 9px;
    color: inherit;
    cursor: pointer;
    display: grid;
    gap: 8px;
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 64px;
    min-width: 0;
    padding: 7px;
    text-align: left;
  }

  .desktop-recent-product:hover {
    border-color: #2ac9a3;
    box-shadow: 0 5px 14px rgba(0, 158, 122, 0.08);
  }

  .desktop-recent-product-image {
    background: #eff8f6;
    border-radius: 7px;
    height: 44px;
    overflow: hidden;
    width: 44px;
  }

  .desktop-recent-product-image img,
  .desktop-sale-product-image img,
  .desktop-cart-product-image img {
    height: 100%;
    object-fit: var(--product-image-fit, contain);
    object-position: var(--product-image-position-x, 50%)
      var(--product-image-position-y, 50%);
    transform: scale(var(--product-image-zoom, 1));
    width: 100%;
  }

  .desktop-recent-product span,
  .desktop-recent-product strong,
  .desktop-recent-product small,
  .desktop-recent-product b {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-recent-product strong {
    font-size: 0.7rem;
  }

  .desktop-recent-product small {
    color: #7b8798;
    font-size: 0.58rem;
  }

  .desktop-recent-product b {
    color: #009b79;
    font-size: 0.68rem;
    margin-top: 3px;
  }

  .desktop-sales-catalog {
    padding: 12px;
  }

  .desktop-sales-catalog > header,
  .desktop-sales-cart > header {
    align-items: center;
    display: flex;
    justify-content: space-between;
  }

  .desktop-sales-catalog > header {
    margin-bottom: 10px;
  }

  .desktop-sales-catalog > header h3 span,
  .desktop-sales-cart > header h3 span {
    color: #00a47f;
    font-size: 0.68rem;
    margin-left: 6px;
  }

  .desktop-sales-catalog > header > span {
    align-items: center;
    color: #728096;
    display: flex;
    font-size: 0.68rem;
    gap: 5px;
  }

  .desktop-sales-catalog > header svg {
    width: 17px;
  }

  .desktop-sales-product-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    max-height: calc(100dvh - 330px);
    min-height: 318px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2px 4px 8px 1px;
    scrollbar-gutter: stable;
  }

  .desktop-sale-product {
    background: #fff;
    border: 1px solid #dfe6ed;
    border-radius: 10px;
    min-height: 132px;
    min-width: 0;
    overflow: hidden;
    position: relative;
    transition:
      border-color 0.16s ease,
      box-shadow 0.16s ease,
      transform 0.16s ease;
  }

  .desktop-sale-product:hover,
  .desktop-sale-product.selected {
    border-color: #26c8a0;
    box-shadow: 0 8px 20px rgba(0, 156, 122, 0.1);
    transform: translateY(-1px);
  }

  .desktop-sale-product[hidden] {
    display: none;
  }

  .desktop-sale-product-main {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: grid;
    gap: 10px;
    grid-template-columns: 86px minmax(0, 1fr);
    height: 100%;
    min-width: 0;
    padding: 10px 42px 10px 10px;
    text-align: left;
    width: 100%;
  }

  .desktop-sale-product-image {
    align-items: center;
    background: #eef8f6;
    border-radius: 9px;
    display: flex;
    height: 104px;
    justify-content: center;
    overflow: hidden;
    width: 86px;
  }

  .desktop-product-fallback,
  .desktop-sale-product-image .product-photo-fallback,
  .desktop-recent-product-image .product-photo-fallback,
  .desktop-cart-product-image .product-photo-fallback {
    align-items: center;
    color: #00a680;
    display: flex;
    font-size: 1.25rem;
    font-weight: 800;
    height: 100%;
    justify-content: center;
    width: 100%;
  }

  .desktop-sale-product-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .desktop-sale-product-copy strong {
    display: -webkit-box;
    font-size: 0.79rem;
    line-height: 1.25;
    min-height: 2em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .desktop-sale-product-copy small {
    color: #78869a;
    font-size: 0.65rem;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-sale-product-copy > b {
    color: #00a47f;
    font-size: 0.86rem;
    margin: 7px 0 5px;
  }

  .desktop-sale-product-copy em {
    align-items: center;
    color: #68778d;
    display: flex;
    font-size: 0.62rem;
    font-style: normal;
    gap: 4px;
  }

  .desktop-sale-product-copy em svg {
    flex: 0 0 13px;
    width: 13px;
  }

  .desktop-sale-product-copy em.low {
    color: #c77b00;
  }

  .desktop-sale-product-copy em.out {
    color: #df3f4c;
  }

  .desktop-sale-product-copy em.renewal,
  .desktop-sale-product-copy em.variable {
    color: #2475c9;
  }

  .desktop-sale-favorite-toggle,
  .desktop-sale-add {
    align-items: center;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    position: absolute;
    right: 8px;
  }

  .desktop-sale-favorite-toggle {
    background: #fff;
    color: #8391a4;
    height: 30px;
    top: 8px;
    width: 30px;
  }

  .desktop-sale-favorite-toggle svg {
    fill: transparent;
    width: 18px;
  }

  .desktop-sale-favorite-toggle.active {
    color: #ffb000;
  }

  .desktop-sale-favorite-toggle.active svg {
    fill: currentColor;
  }

  .desktop-sale-add {
    background: #08ad84;
    bottom: 9px;
    color: #fff;
    height: 30px;
    width: 30px;
  }

  .desktop-sale-add svg {
    width: 16px;
  }

  .desktop-sale-add:disabled {
    background: #e8ecf1;
    color: #8995a6;
    cursor: not-allowed;
  }

  .desktop-sale-product-qty {
    align-items: center;
    background: #17253a;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    display: flex;
    font-size: 0.62rem;
    font-weight: 800;
    height: 22px;
    justify-content: center;
    left: 76px;
    min-width: 22px;
    padding: 0 5px;
    position: absolute;
    top: 6px;
  }

  .desktop-sale-product-qty[hidden] {
    display: none;
  }

  .desktop-sales-cart {
    display: flex;
    flex-direction: column;
    max-height: max(390px, calc(100dvh - 290px));
    overflow: hidden;
    padding: 12px;
    position: sticky;
    top: 12px;
  }

  .desktop-sales-cart > header {
    flex: 0 0 auto;
    margin-bottom: 10px;
  }

  .desktop-sales-cart > header button {
    align-items: center;
    background: transparent;
    border: 0;
    color: #e24753;
    cursor: pointer;
    display: flex;
    font-size: 0.66rem;
    gap: 5px;
    padding: 6px;
  }

  .desktop-sales-cart > header button svg {
    width: 14px;
  }

  .desktop-client-area {
    flex: 0 0 auto;
    margin-bottom: 10px;
  }

  .desktop-client-select {
    align-items: center;
    background: #fff;
    border: 1px solid #dce4ec;
    border-radius: 9px;
    color: #009879;
    cursor: pointer;
    display: grid;
    font-size: 0.72rem;
    font-weight: 700;
    gap: 8px;
    grid-template-columns: 20px minmax(0, 1fr) 16px;
    min-height: 46px;
    padding: 8px 11px;
    text-align: left;
    width: 100%;
  }

  .desktop-client-select svg {
    width: 18px;
  }

  .desktop-client-select svg:last-child {
    color: #8190a3;
  }

  .desktop-client-area .pos-client-card {
    background: #f3faf8;
    border: 1px solid #d4eee7;
    border-radius: 9px;
    margin-bottom: 7px;
    padding: 8px 10px;
  }

  .desktop-client-area .pos-client-card:has(.muted) {
    display: none;
  }

  .desktop-client-area:has(#selected-client-card > div) .desktop-client-select {
    display: none;
  }

  .desktop-client-area .pos-client-card > div:first-child > small,
  .desktop-client-area .pos-client-card > div:first-child > b {
    display: block;
  }

  .desktop-client-area .pos-client-card > div:first-child > small {
    color: #718096;
    font-size: 0.6rem;
  }

  .desktop-client-area .pos-client-card > div:first-child > b {
    font-size: 0.76rem;
  }

  .desktop-client-area .pos-client-card p {
    margin: 3px 0 0;
  }

  .desktop-cart-list {
    flex: 1 1 auto;
    min-height: 92px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .desktop-cart-item {
    align-items: center;
    border-top: 1px solid #e8edf2;
    display: grid;
    gap: 4px;
    grid-template-columns: minmax(0, 1fr) 78px 54px 58px 18px;
    min-height: 64px;
    padding: 8px 2px;
  }

  .desktop-cart-product {
    align-items: center;
    display: flex;
    gap: 8px;
    min-width: 0;
  }

  .desktop-cart-product-image {
    background: #f2f6f7;
    border-radius: 7px;
    flex: 0 0 40px;
    height: 40px;
    overflow: hidden;
    width: 40px;
  }

  .desktop-cart-product > div,
  .desktop-cart-product b,
  .desktop-cart-product small {
    min-width: 0;
  }

  .desktop-cart-product b,
  .desktop-cart-product small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-cart-product b {
    font-size: 0.69rem;
  }

  .desktop-cart-product small {
    color: #728096;
    font-size: 0.58rem;
  }

  .desktop-cart-quantity {
    align-items: center;
    display: flex;
    justify-content: center;
  }

  .desktop-cart-quantity button {
    background: #fff;
    border: 1px solid #dce4ec;
    border-radius: 50%;
    color: #344359;
    cursor: pointer;
    height: 26px;
    padding: 0;
    width: 26px;
  }

  .desktop-cart-quantity input {
    background: transparent;
    border: 0;
    color: #19263d;
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 0;
    padding: 0;
    text-align: center;
    width: 36px;
  }

  .desktop-cart-unit span {
    display: none;
  }

  .desktop-cart-unit input {
    background: transparent;
    border: 0;
    color: #344359;
    font-size: 0.65rem;
    min-width: 0;
    padding: 0;
    text-align: right;
    width: 100%;
  }

  .desktop-cart-total {
    font-size: 0.68rem;
    text-align: right;
  }

  .desktop-cart-remove {
    align-items: center;
    background: transparent;
    border: 0;
    color: #7c899c;
    cursor: pointer;
    display: flex;
    justify-content: center;
    padding: 2px;
  }

  .desktop-cart-remove svg {
    width: 15px;
  }

  .desktop-discount {
    border-top: 1px solid #e7ecf1;
    flex: 0 0 auto;
    padding: 8px 0 5px;
  }

  .desktop-discount-trigger {
    align-items: center;
    background: #fff;
    border: 1px dashed #cbd6e0;
    border-radius: 8px;
    color: #008d70;
    cursor: pointer;
    display: grid;
    font-size: 0.69rem;
    font-weight: 700;
    gap: 7px;
    grid-template-columns: 18px minmax(0, 1fr) auto 16px;
    min-height: 42px;
    padding: 8px 10px;
    text-align: left;
    width: 100%;
  }

  .desktop-discount-trigger svg {
    width: 16px;
  }

  .desktop-discount-trigger b {
    color: #df4451;
    font-size: 0.66rem;
  }

  .desktop-discount-trigger[aria-expanded="true"] svg:last-child {
    transform: rotate(180deg);
  }

  .desktop-discount-fields {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    padding-top: 8px;
  }

  .desktop-discount-fields[hidden] {
    display: none;
  }

  .desktop-discount-fields label {
    color: #68778c;
    display: grid;
    font-size: 0.62rem;
    gap: 3px;
  }

  .desktop-discount-fields input {
    background: #f7f9fb;
    border: 1px solid #dce4ec;
    border-radius: 7px;
    min-width: 0;
    padding: 7px 8px;
    width: 100%;
  }

  .desktop-sale-totals {
    flex: 0 0 auto;
    padding: 5px 1px 7px;
  }

  .desktop-sale-totals .summary-row {
    align-items: center;
    display: flex;
    font-size: 0.69rem;
    justify-content: space-between;
    padding: 3px 0;
  }

  .desktop-sale-totals .discount b {
    color: #e04451;
  }

  .desktop-sale-totals .private-value {
    display: none;
  }

  .desktop-sale-totals .total-row {
    border-top: 1px solid #dfe6ed;
    font-size: 1rem;
    margin-top: 5px;
    padding-top: 9px;
  }

  .desktop-sale-totals .total-row b {
    color: #009b79;
    font-size: 1.12rem;
  }

  .desktop-continue-sale,
  .desktop-checkout-fields #finish-sale {
    align-items: center;
    background: linear-gradient(135deg, #09b589, #009873);
    border: 0;
    border-radius: 9px;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex: 0 0 auto;
    font-size: 0.79rem;
    font-weight: 800;
    justify-content: center;
    min-height: 48px;
    padding: 8px 14px;
    position: relative;
    width: 100%;
  }

  .desktop-continue-sale > span b,
  .desktop-checkout-fields #finish-sale span {
    font: inherit;
  }

  .desktop-continue-sale > svg {
    position: absolute;
    right: 14px;
    width: 18px;
  }

  .desktop-continue-sale[hidden] {
    display: none;
  }

  .desktop-checkout-fields {
    border-top: 1px solid #e5eaf0;
    display: grid;
    flex: 1 1 auto;
    gap: 8px;
    grid-template-columns: 1fr;
    margin-top: 8px;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
    padding-top: 9px;
  }

  .desktop-checkout-fields[hidden] {
    display: none;
  }

  .desktop-sales-cart:has(.desktop-checkout-fields:not([hidden]))
    .desktop-cart-list,
  .desktop-sales-cart:has(.desktop-checkout-fields:not([hidden]))
    .desktop-discount {
    display: none;
  }

  .desktop-back-to-cart {
    align-items: center;
    background: transparent;
    border: 0;
    color: #65758b;
    cursor: pointer;
    display: flex;
    font-size: 0.68rem;
    font-weight: 700;
    gap: 6px;
    justify-self: start;
    padding: 2px 0;
  }

  .desktop-back-to-cart svg {
    width: 15px;
  }

  .desktop-checkout-fields #finish-sale {
    bottom: 0;
    box-shadow: 0 -8px 18px rgba(255, 255, 255, 0.94);
    position: sticky;
    z-index: 2;
  }

  .desktop-checkout-fields .field {
    display: grid;
    gap: 4px;
  }

  .desktop-checkout-fields .field label {
    color: #5f6e83;
    font-size: 0.62rem;
    font-weight: 700;
  }

  .desktop-checkout-fields select,
  .desktop-checkout-fields textarea {
    border: 1px solid #dce4ec;
    border-radius: 7px;
    min-width: 0;
    padding: 7px 8px;
    width: 100%;
  }

  .desktop-checkout-fields textarea {
    min-height: 50px;
    resize: vertical;
  }

  .desktop-sale-empty {
    align-items: center;
    color: #738197;
    display: flex;
    flex-direction: column;
    gap: 5px;
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 170px;
    padding: 18px;
    text-align: center;
  }

  .desktop-sale-empty > svg {
    color: #00a47f;
    width: 28px;
  }

  .desktop-sale-empty b {
    color: #25334a;
    font-size: 0.75rem;
  }

  .desktop-sale-empty small {
    font-size: 0.65rem;
  }

  .desktop-cart-empty {
    align-items: center;
    flex-direction: row;
    min-height: 86px;
    padding: 12px;
  }

  .desktop-cart-empty span,
  .desktop-cart-empty span b,
  .desktop-cart-empty span small {
    display: block;
    text-align: left;
  }

  .desktop-variation-picker {
    display: grid;
    gap: 8px;
  }

  .desktop-variation-picker > button {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    justify-content: initial;
    text-align: left;
  }

  body:has(.desktop-sales) .variation-picker-bg {
    align-items: center;
    padding: 24px;
  }

  body:has(.desktop-sales) .variation-picker {
    border-radius: 18px;
    max-height: min(78vh, 680px);
    width: min(620px, calc(100vw - 48px));
  }

  body:has(.desktop-sales) .variation-picker-row {
    gap: 8px 12px;
    grid-template-columns: 56px minmax(0, 1fr) auto auto;
    padding: 11px 2px;
  }

  body:has(.desktop-sales) .variation-picker-photo {
    grid-column: 1;
    grid-row: 1;
    height: 56px;
    width: 56px;
  }

  body:has(.desktop-sales) .variation-picker-row > div:first-of-type {
    grid-column: 2;
    grid-row: 1;
  }

  body:has(.desktop-sales) .variation-stock {
    grid-column: 3;
    grid-row: 1;
  }

  body:has(.desktop-sales) .variation-qty {
    grid-column: 4;
    grid-row: 1;
  }

  @media (max-width: 1280px) {
    .desktop-sales-cart {
      max-height: max(390px, calc(100dvh - 330px));
    }

    .desktop-sales-toolbar {
      grid-template-columns: minmax(260px, 2fr) 50px repeat(
          2,
          minmax(116px, 0.8fr)
        );
    }

    .desktop-sales-select:nth-of-type(4),
    .desktop-sales-favorite {
      grid-row: 2;
    }

    .desktop-sales-select:nth-of-type(4) {
      grid-column: 1 / 3;
    }

    .desktop-sales-favorite {
      grid-column: 3 / 5;
    }

    .desktop-sales-layout {
      grid-template-columns: minmax(0, 1.45fr) minmax(350px, 1fr);
    }

    .desktop-recent-products > div {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .desktop-recent-product:nth-child(n + 5) {
      display: none;
    }

    .desktop-sales-product-grid {
      grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    }

    .desktop-cart-item {
      grid-template-columns: minmax(0, 1fr) 74px 52px 54px 18px;
    }
  }

  @media (max-width: 1040px) {
    body:has(.desktop-sales) main {
      padding-inline: 14px;
    }

    .desktop-sales-layout {
      gap: 10px;
      grid-template-columns: minmax(0, 1.25fr) minmax(330px, 1fr);
    }

    .desktop-recent-products > div {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .desktop-recent-product:nth-child(n + 4) {
      display: none;
    }

    .desktop-sales-product-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .desktop-sale-product-main {
      grid-template-columns: 72px minmax(0, 1fr);
      padding-left: 8px;
    }

    .desktop-sale-product-image {
      height: 94px;
      width: 72px;
    }

    .desktop-cart-item {
      gap: 5px;
      grid-template-columns: minmax(0, 1fr) 72px 50px 52px 18px;
    }

    .desktop-cart-product-image {
      display: none;
    }
  }

  @media (max-width: 900px) {
    .desktop-sales-toolbar {
      grid-template-columns: minmax(240px, 1fr) 50px minmax(120px, 0.55fr);
    }

    .desktop-sales-toolbar .desktop-sales-select,
    .desktop-sales-toolbar .desktop-sales-favorite {
      grid-column: auto;
      grid-row: auto;
    }

    .desktop-sales-layout {
      grid-template-columns: 1fr;
    }

    .desktop-sales-cart {
      max-height: none;
      position: static;
    }

    .desktop-sales-product-grid {
      max-height: 430px;
    }

    .desktop-cart-product-image {
      display: block;
    }
  }

  @media (max-height: 780px) and (min-width: 901px) {
    .desktop-cart-list {
      min-height: 60px;
    }
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 768px) {
  .desktop-sale-product {
    transition: none;
  }
}

/* PDV: o catálogo permanece livre e o checkout só aparece no carrinho. */
@media (min-width: 768px) {
  .desktop-sales-layout {
    display: block;
  }

  .desktop-sales-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    max-height: calc(100dvh - 330px);
  }

  .desktop-sales-cart[hidden],
  .desktop-sales-cart-overlay[hidden] {
    display: none;
  }

  .desktop-sales-cart-overlay {
    background: rgba(12, 24, 42, 0.52);
    inset: 0;
    opacity: 0;
    position: fixed;
    transition: opacity 0.2s ease;
    visibility: hidden;
    z-index: 70;
  }

  .desktop-sales-cart-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  .desktop-sales-cart {
    border: 0;
    border-left: 1px solid #dce4ec;
    border-radius: 18px 0 0 18px;
    bottom: 0;
    box-shadow: -18px 0 48px rgba(17, 31, 51, 0.22);
    display: flex;
    max-height: none;
    overflow: hidden;
    padding: 16px;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(102%);
    transition: transform 0.22s ease;
    width: min(520px, calc(100vw - 24px));
    z-index: 71;
  }

  .desktop-sales-cart.is-open {
    transform: translateX(0);
  }

  .desktop-sales-cart > header {
    border-bottom: 1px solid #e5eaf0;
    margin: -2px 0 12px;
    padding-bottom: 11px;
  }

  .desktop-sales-cart > header > div:first-child {
    min-width: 0;
  }

  .desktop-sales-cart > header > div:first-child small {
    color: #758297;
    display: block;
    font-size: 0.68rem;
    margin-top: 3px;
  }

  .desktop-sales-cart > header > div:last-child {
    align-items: center;
    display: flex;
    gap: 4px;
  }

  .desktop-sales-cart > header .desktop-close-cart {
    align-items: center;
    background: #f2f5f8;
    border-radius: 50%;
    color: #26354c;
    display: flex;
    height: 36px;
    justify-content: center;
    width: 36px;
  }

  .desktop-sales-cart > header .desktop-close-cart svg {
    width: 18px;
  }

  .desktop-cart-list {
    min-height: 110px;
  }

  .desktop-sales .desktop-cart-fab {
    align-items: center;
    background: linear-gradient(110deg, #17263e, #243852);
    border: 0;
    border-radius: 18px;
    bottom: 24px;
    box-shadow: 0 12px 30px rgba(17, 31, 51, 0.28);
    color: #fff;
    cursor: pointer;
    display: flex;
    gap: 10px;
    left: auto;
    min-height: 60px;
    padding: 10px 16px;
    position: fixed;
    right: 24px;
    width: min(330px, calc(100vw - 48px));
    z-index: 55;
  }

  .desktop-cart-fab-icon {
    color: #53e3bc;
    display: grid;
    place-items: center;
    position: relative;
  }

  .desktop-cart-fab-icon svg {
    width: 23px;
  }

  .desktop-cart-fab-icon em {
    background: #0eb88d;
    border: 2px solid #20324b;
    border-radius: 999px;
    color: #fff;
    font-size: 0.58rem;
    font-style: normal;
    font-weight: 900;
    left: 15px;
    min-width: 21px;
    padding: 2px 4px;
    position: absolute;
    text-align: center;
    top: -10px;
  }

  .desktop-sales .desktop-cart-fab > span:nth-child(2) {
    flex: 1;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: left;
  }

  .desktop-sales .desktop-cart-fab > b {
    color: #56e6c0;
    font-size: 0.86rem;
  }

  .desktop-sales .desktop-cart-fab > svg:last-child {
    width: 17px;
  }

  .sales-cart-open {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 768px) {
  .desktop-sales-cart,
  .desktop-sales-cart-overlay {
    transition: none;
  }
}
