.desktop-cart-overlay,
.desktop-cart-drawer {
  display: none;
}

@media (min-width: 992px) {
  .desktop-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    z-index: 4200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  .desktop-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 92vw);
    height: 100vh;
    background: #ffffff;
    z-index: 4210;
    transform: translateX(100%);
    transition: transform 0.24s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.1);
  }

  body.cart-drawer-open .desktop-cart-overlay {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  body.cart-drawer-open .desktop-cart-drawer {
    display: flex;
    transform: translateX(0);
  }

  body.cart-drawer-open {
    overflow: hidden;
  }

  .desktop-cart-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #ededed;
    background: #ffffff;
  }

  .desktop-cart-drawer__head h3 {
    margin: 0;
    font-size: 32px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #111;
  }

  .desktop-cart-drawer__close {
    border: 0;
    background: transparent;
    color: #111;
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
  }

  .desktop-cart-drawer__progress {
    padding: 12px 20px 10px;
    background: #ffffff;
  }

  .desktop-cart-drawer__progress p {
    margin: 0 0 8px;
    color: #252525;
    font-size: 13px;
    line-height: 1.4;
  }

  .desktop-cart-drawer__bar {
    height: 6px;
    border-radius: 999px;
    background: #dcdcdc;
    overflow: hidden;
  }

  .desktop-cart-drawer__bar span {
    display: block;
    height: 100%;
    width: 0;
    background: #111;
  }

  .desktop-cart-drawer__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 12px 20px 16px;
  }

  .desktop-cart-drawer__empty {
    font-size: 14px;
    color: #666;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 18px 14px;
  }

  .desktop-cart-item {
    display: grid;
    grid-template-columns: 62px 1fr 24px;
    gap: 12px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid #efefef;
  }

  .desktop-cart-item img {
    width: 64px;
    height: 74px;
    object-fit: cover;
    border-radius: 6px;
    background: #fff;
  }

  .desktop-cart-item__name {
    font-size: 17px;
    line-height: 1.35;
    color: #151515;
    margin-bottom: 4px;
  }

  .desktop-cart-item__price {
    font-size: 14px;
    color: #555;
    margin-bottom: 4px;
  }

  .desktop-cart-item__variant {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
  }

  .desktop-cart-item__variant strong {
    color: #111;
    font-weight: 600;
  }

  .desktop-cart-item__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .desktop-cart-item__qty-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .desktop-cart-item__qty-form button {
    width: 22px;
    height: 22px;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
  }

  .desktop-cart-item__qty-form span {
    min-width: 18px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
  }

  .desktop-cart-item__line-total {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
  }

  .desktop-cart-item__remove-form button {
    border: 0;
    background: transparent;
    color: #111;
    cursor: pointer;
    padding: 2px;
    font-size: 15px;
  }

  .desktop-cart-drawer__mid-action {
    padding: 12px 18px;
    border-top: 1px solid #e3e3e3;
    background: #f8f8f8;
  }

  .desktop-cart-drawer__mid-action a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border: 1px solid #d9d9d9;
    background: #ffffff;
    color: #111;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-transform: uppercase;
  }

  .desktop-cart-drawer__bottom {
    background: #000;
    color: #fff;
    padding: 12px 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
  }

  .desktop-cart-drawer__total {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .desktop-cart-drawer__total span {
    font-size: 13px;
    opacity: 0.9;
  }

  .desktop-cart-drawer__total strong {
    font-size: 24px;
    line-height: 1;
    letter-spacing: 0.2px;
  }

  .desktop-cart-drawer__bottom a {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
}
