.cart__container {
  display: grid;
  grid-template-columns: 1fr 330px;
  grid-template-areas: "share-panel order-data" "cart-list order-data" "cart-list--ended order-data";
  column-gap: 28px;
}

@media (max-width: 1023.9px) {
  .cart__container {
    grid-template-columns: 1fr 255px;
  }
}

@media (max-width: 944.9px) {
  .cart__container {
    grid-template-columns: 1fr;
    grid-template-areas: "share-panel" "cart-list" "order-data" "cart-list--ended";
  }
}

.cart--tabs .cart__container {
  margin-bottom: 20px;
}

.cart--tabs .cart-list--ended {
  width: calc(100% - 330px - 28px);
}

@media (max-width: 1023.9px) {
  .cart--tabs .cart-list--ended {
    width: calc(100% - 255px - 28px);
  }
}

@media (max-width: 944.9px) {
  .cart--tabs .cart-list--ended {
    width: 100%;
  }
}

.cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  margin-top: 25px;
  padding: 0 0 0 25px;
  grid-area: share-panel;
}

.cart__section:not(:last-child) {
  margin-bottom: 35px;
}

.cart__actions {
  display: flex;
  align-items: center;
  column-gap: 7px;
}

.cart__share {
  column-gap: 13px;
  height: 37px;
  border-radius: 63px;
  padding: 13px 17px;
}

.cart__action--around {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  background-color: #f5f7fa;
  border-radius: 50%;
}

.cart-aside {
  width: 330px;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .cart-aside {
    width: 255px;
  }
}

@media (max-width: 920px) {
  .cart-aside {
    width: 100%;
  }
}

.cart-list {
  padding: 31px 25px;
  display: flex;
  flex-direction: column;
  row-gap: 24px;
}

.cart-list:not(:last-child) {
  margin-bottom: 20px;
}

@media (max-width: 1366px) {
  .cart-list {
    padding: 31px 20px;
  }
}

@media (max-width: 678.9px) {
  .cart-list {
    padding: 25px 15px;
  }
}

.cart-list--disabled {
  margin-top: 20px;
}

.cart-list--disabled .cart-item__img, .cart-list--disabled .cart-item__title {
  opacity: 0.4;
}

.cart-list--ended {
  background-color: transparent;
  border: 1px solid #c9c9c9;
}

.cart-list--ended .cart-item__column:first-child {
  padding-left: 32px;
}

.cart-list__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  cursor: pointer;
  border-bottom: 1px solid #dfdfdf;
}

.cart-list__title {
  font-size: 22px;
  line-height: 26px;
}

.cart-list__body {
  padding-top: 33px;
}

.cart__item {
  margin-bottom: 28px;
}

.cart__item:last-child {
  margin-bottom: 0;
}

.cart__item--deleted .cart-item, .cart__item--ended .cart-item {
  column-gap: 44px;
}

.cart__item--deleted {
  align-items: center;
}

.cart__item--deleted .cart-item__column:first-child {
  padding-left: 32px;
}

@media (max-width: 678.99px) {
  .cart__item--deleted .cart-item__column:first-child {
    padding-left: 0;
  }
}

.cart__item--deleted .cart-item__img {
  width: 53px;
  height: 70px;
  opacity: 0.5;
}

@media (max-width: 678.99px) {
  .cart__item--deleted .cart-item__img {
    width: 125px;
    height: auto;
  }

  .cart__item--deleted .cart-item__img img {
    width: 100%;
  }
}

.cart__item--deleted .cart-item__title, .cart__item--deleted .cart-item__price, .cart__item--deleted .cart-item__state {
  opacity: 0.4;
}

@media (max-width: 678.99px) {
  .cart__item--deleted .cart-item__column:nth-child(2) {
    display: none;
  }
}

.cart__item--deleted .cart-item__price-dekstop {
  margin-bottom: 0;
}

.cart__item--ended .cart-item__state {
  padding-top: 33px;
  opacity: 0.4;
}

.cart__item--ended .cart-item__img {
  opacity: 0.4;
}

.cart-item {
  display: grid;
  justify-content: space-between;
  grid-template-columns: minmax(330px, 425px) 1fr minmax(150px, 240px);
  column-gap: 24px;
}

@media (max-width: 1365.99px) {
  .cart-item {
    grid-template-columns: minmax(330px, 425px) 106px 1fr;
  }
}

@media (max-width: 1098.99px) {
  .cart-item {
    grid-template-columns: 320px 110px 1fr;
    column-gap: 10px;
  }
}

@media (max-width: 678.99px) {
  .cart-item {
    grid-template-columns: 1fr;
    border-bottom: 1px solid #a9a9a9;
    padding-bottom: 20px;
  }

  .cart-item:last-child {
    border: 0;
    padding-bottom: 0;
  }
}

.cart-item__img {
  display: block;
  width: 125px;
  flex-shrink: 0;
}

.cart-item__img-wrapper {
  flex-shrink: 0;
}

.cart-item__articul {
  display: inline-flex;
  align-items: center;
  color: #9d9d9d;
  line-height: 27px;
  margin-bottom: 5px;
  font-weight: 500;
}

.cart-item__articul-val {
  text-transform: uppercase;
}

.cart-item__total {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  row-gap: 9px;
  width: 100%;
}

.cart-item__title,
.cart-item__brand {
  font-size: 15px;
  line-height: 19px;
}

.cart-item__title {
  margin-bottom: 2px;
}

.cart-item__brand {
  color: var(--gray);
}

@media (max-width: 1024px) {
  .cart-item__title {
    font-size: 14px;
  }
}

@media (max-width: 678.9px) {
  .cart-item__title {
    max-width: 156px;
  }
}

@media (max-width: 678.9px) {
  .cart-item:not(.cart__item--deleted) .cart-item__price {
    color: var(--red-color);
    justify-content: flex-start;
  }
}

.cart-item__price {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  font-weight: 700;
}

@media (max-width: 678.9px) {
  .cart-item__price {
    justify-content: flex-start;
  }
}

.cart-item__price-val {
  font-size: 26px;
}

@media (max-width: 678.9px) {
  .cart-item__price-val {
    font-size: 22px;
    line-height: 24px;
  }
}

.cart-item__price-rub {
  font-size: 20px;
}

@media (max-width: 678.9px) {
  .cart-item__price-rub {
    font-size: 17px;
    line-height: 24px;
  }
}

@media (max-width: 678.9px) {
  .cart-item__price-mobile {
    display: block;
    margin-bottom: 25px;
  }

  .cart-item__price-mobile .cart-delivery {
    row-gap: 0;
  }
}

@media (min-width: 679px) {
  .cart-item__price-mobile {
    display: none;
  }
}

.cart-item__price-mobile .cart-item__state {
  display: block;
  padding: 0;
  font-size: 14px;
}

.cart-item__price-dekstop {
  margin-bottom: 16px;
}

@media (max-width: 678.9px) {
  .cart-item__price-dekstop {
    display: none;
  }
}

@media (min-width: 679px) {
  .cart-item__price-dekstop {
    display: block;
  }
}

.cart-item__actions {
  margin-top: 26px;
}

@media (max-width: 678.9px) {
  .cart-item__actions {
    position: absolute;
    left: auto;
    margin: 0;
    bottom: -55px;
  }
}

.cart-delivery__section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.cart-delivery__button {
  height: 37px;
  border-color: var(--red-color);
  color: var(--red-color);
  padding: 0 18px;
  white-space: nowrap;
}

@media (max-width: 1098.99px) {
  .cart-delivery__button {
    padding: 0;
    border-color: transparent;
    font-size: 14px;
    height: auto;
    margin-bottom: 10px;
  }
}

@media (max-width: 944.99px) {
  .cart-delivery__button {
    padding: 0 12px;
    margin: 0;
    height: 37px;
    border-color: var(--red-color);
  }
}

.cart-delivery__section:not(:last-child) {
  margin-bottom: 16px;
}

.cart-delivery__days {
  font-size: 15px;
  line-height: 19px;
  color: #9d9d9d;
  white-space: nowrap;
}

@media (max-width: 678.9px) {
  .cart-delivery__days {
    font-size: 14px;
  }
}

.cart-delivery__remark {
  font-size: 14px;
  line-height: 27px;
  color: #9d9d9d;
  font-weight: 500;
}

.cart-delivery__offer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

@media (max-width: 678.9px) {
  .cart-delivery__offer {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    column-gap: 20px;
    margin-top: 12px;
  }
}

@media (max-width: 675.99px) {
  .button-share {
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .button-share__text {
    display: none;
  }
}

.cart-item__charact {
  color: #9d9d9d;
  font-size: 15px;
  line-height: 19px;
  font-weight: 400;
}

@media (max-width: 678.9px) {
  .cart-item__charact {
    margin-bottom: 8px;
    font-size: 13px;
  }
}

.cart-item__control {
  display: flex;
  column-gap: 60px;
}

@media (max-width: 1366px) {
  .cart-item__control {
    column-gap: 40px;
  }
}

@media (max-width: 1024px) {
  .cart-item__control {
    column-gap: 18px;
  }
}

@media (max-width: 678.9px) {
  .cart-item__control {
    width: fit-content;
    margin-top: 15px;
  }
}

.cart-item__info {
  position: relative;
  display: flex;
  column-gap: 13px;
  align-items: flex-start;
}

.cart-item__info-main {
  display: flex;
  column-gap: 29px;
  align-items: flex-start;
}

@media (max-width: 678.9px) {
  .cart-item__info-main {
    column-gap: 8px;
  }
}

.cart-item__status {
  font-size: 20px;
  line-height: 29px;
  font-weight: 900;
}

.cart-item__status--itsover {
  color: #ff666d;
}

.cart-item__delivery {
  text-align: right;
}

.cart-item__state {
  font-size: 15px;
}

@media (max-width: 678.99px) {
  .cart-item__state {
    display: none;
  }
}

@media (max-width: 678.99px) {
  .cart-item__checkbox {
    position: absolute;
    left: 4px;
    top: 4px;
  }
}

@media (max-width: 678.9px) {
  .cart-item__similar, .cart-item__return {
    width: 100%;
  }
}

.cart-item__similar {
  margin-top: 11px;
}

.cart__aside {
  grid-area: order-data;
}

.cart__tabs {
  margin-bottom: 20px;
}

.cart .product {
  max-width: 100%;
}

.product-actions {
  display: flex;
  gap: 11px;
}

@media (max-width: 678.9px) {
  .product-actions {
    gap: 9px;
  }
}

.product-actions__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 49px;
  height: 49px;
  border-radius: 50%;
  background-color: #ffffff;
  transition: ease 0.3s all;
}

@media (max-width: 678.9px) {
  .product-actions__item {
    width: 40px;
    height: 40px;
  }

  .product-actions__item svg {
    width: 19px;
  }

  .product-actions__item--copy svg {
    width: 28px;
  }
}

.product-actions__item:hover:not(.product-actions__item--like) path {
  stroke: var(--red-color);
}

.product-actions__item:active:not(.product-actions__item--like) {
  background-color: var(--red-color);
}

.product-actions__item:active:not(.product-actions__item--like) path {
  stroke: #ffffff;
}

.product-actions__item--like:hover path {
  fill: var(--red-color);
}

.product-actions__item--like:active {
  background-color: var(--red-color);
}

.product-actions__item--like:active path {
  fill: #ffffff;
}

.counter {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-column-gap: 15px;
  -moz-column-gap: 15px;
  column-gap: 15px;
}

@media (max-width: 1365.9px) {
  .counter {
    column-gap: 0;
  }
}
@media (max-width: 679px) {
  .counter {
    -webkit-column-gap: 0;
    -moz-column-gap: 0;
    column-gap: 0;
  }
}

.counter__button, .counter__num {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 679px) {
  .counter__button, .counter__num {
    width: 40px;
    height: 40px;
  }
}

.counter__button {
  border-radius: 10px;
  background-color: #eaeaea;
}


.product-actions {
  display: flex;
  gap: 11px;
}

@media (max-width: 679px) {
  .product-actions {
    gap: 9px;
  }
}

.product-actions__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 49px;
  height: 49px;
  border-radius: 50%;
  background-color: #ffffff;
  transition: ease 0.3s all;
}

@media (max-width: 679px) {
  .product-actions__item {
    width: 40px;
    height: 40px;
  }

  .product-actions__item svg {
    width: 19px;
  }

  .product-actions__item--copy svg {
    width: 28px;
  }
}

.product-actions__item:hover:not(.product-actions__item--like) path {
  stroke: var(--red-color);
}

.product-actions__item:active:not(.product-actions__item--like) {
  background-color: var(--red-color);
}

.product-actions__item:active:not(.product-actions__item--like) path {
  stroke: #ffffff;
}

.product-actions__item--like:hover path {
  fill: var(--red-color);
}

.product-actions__item--like:active {
  background-color: var(--red-color);
}

.product-actions__item--like:active path {
  fill: #ffffff;
}

.page-message {
  padding: 50px 55px 96px 55px;
  position: relative;
}

.page-message-panel {
  background-color: #f5f7fa;
  border-radius: 15px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 14px 26px 80px 26px;
  }
}

.page-message__title {
  font-size: 27px;
  font-weight: 700;
  line-height: 42px;
  margin-bottom: 7px;
}

.page-message__text p {
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  margin-bottom: 10px;
}

.page-message__descr {
  position: relative;
  max-width: 520px;
  font-size: 16px;
  font-weight: 400;
}

@media (max-width: 1024px) {
  .page-message__descr {
    max-width: 430px;
  }
}

@media (max-width: 768px) {
  .page-message__descr {
    text-align: center;
  }
}

.page-message__descr p {
  font-weight: 400;
  margin-bottom: 10px;
}

.page-message__main {
  position: relative;
  margin-bottom: 50px;
}

.page-message__main:after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: #ff4e57;
}

@media (max-width: 768px) {
  .page-message__main:after {
    left: 50%;
    bottom: -40px;
    transform: translateX(-50%);
  }
}

.page-message__list {
  padding-left: 15px;
}

.page-message__bottom {
  font-weight: 400;
}

.page-message__bottom .link-more__text {
  font-weight: 400;
}

.page-message.liked .page-message__img {
  width: 335px;
  height: 221px;
  background-image: url(../img/busket-img-empty.svg);
}

.page-message.cart .page-message__img {
  width: 390px;
  height: 240px;
  background-image: url(../../img/busket-img-empty.svg);
}

.page-message__img {
  position: absolute;
  bottom: -60px;
  right: 42px;
  z-index: 10;
}

@media (max-width: 900px) {
  .page-message__img {
    width: 300px;
  }
}

@media (max-width: 768px) {
  .page-message__img {
    position: relative;
    right: unset;
    bottom: unset;
    width: 160px;
    height: 140px;
    order: -1;
    margin: auto;
    background-image: url(../../img/busket-img-empty-mob.svg);
  }
}

.page-message__list li {
  list-style: disc;
  margin-bottom: 8px;
  font-weight: 500;
}

.page-message__list li:last-child {
  margin-bottom: 0;
}

.page-message__list .link-more__text {
  font-weight: 500;
}

.order-info {
  font-size: 18px;
  line-height: 22px;
}

.order-info__title {
  margin-bottom: 15px;
  padding-bottom: 11px;
  border-bottom: 1px solid #dfdfdf;
  font-size: 22px;
  line-height: 26px;
  font-weight: 700;
}

.order-info__header {
  font-weight: 400;
  margin-bottom: 10px;
  padding: 17px 19px;
  border-radius: 15px;
  border: 1px solid #c9c9c9;
}

.order-info__address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  line-height: 21px;
  font-weight: 500;
}

.order-info__body {
  font-weight: 400;
  margin-bottom: 38px;
}

.order-info__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

.order-info__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 40px;
}

.order-info__price {
  font-size: 30px;
  font-weight: 900;
}

.order-info__price-rub {
  font-size: 20px;
  font-weight: 900;
}

.order-info__button {
  width: 100%;
  height: 52px;
}

@media (max-width: 1024px) {
  .order-info__button {
    padding-left: 0;
    padding-right: 0;
  }
}

.order-info__section {
  padding: 16px 20px;
}

.delivery-speed__body {
  margin-bottom: 45px;
}

.delivery-speed__body:last-child {
  margin-bottom: 0;
}

.delivery-speed__header {
  font-size: 22px;
  line-height: 26px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 1px solid #dfdfdf;
  margin-bottom: 18px;
}

.delivery-speed__item {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 21px;
}

.delivery-speed__item:last-child {
  margin-bottom: 0;
}

.delivery-speed__item .delivery-speed {
  color: #000000;
}

.delivery-speed__item--total {
  font-weight: 700;
}

.delivery-speed__item--total .delivery-speed__key {
  font-size: 18px;
  line-height: 21.6px;
  font-weight: 900;
}

.delivery-speed__item--total .delivery-speed__val {
  font-size: 30px;
  font-weight: 700;
}

.delivery-speed__key {
  position: relative;
  width: 100%;
  z-index: 1;
}

.delivery-speed__key:after {
  content: "";
  width: 100%;
  height: 20px;
  display: block;
  position: absolute;
  bottom: 5px;
  left: 0;
  z-index: -1;
  background-image: linear-gradient(90deg, #dfdfdf 50%, rgba(255, 255, 255, 0) 0%);
  background-position: bottom;
  background-repeat: repeat-x;
  background-size: 2px 1px;
}

.delivery-speed__key-text {
  background-color: #f5f7fa;
  padding-bottom: 3px;
  padding-right: 4px;
}

.delivery-speed__val {
  flex-shrink: 0;
  line-height: 28px;
}

.delivery-speed__key, .delivery-speed__val {
  font-weight: 500;
}

.order-panel {
  position: fixed;
  bottom: 0px;
  width: 100%;
  z-index: 8;
  background-color: #ffffff;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.order-panel.visible {
  transform: translateY(0);
  bottom: 66px;
}

.order-panel__header {
  position: relative;
  background-color: #3c3c3c;
  padding: 12px 26px;
  font-weight: 600;
  color: #ffffff;
}

.order-panel__header:after {
  position: absolute;
  bottom: -10px;
  left: 0;
  content: "";
  width: 0;
  height: 0;
  border-left: 52.5px solid transparent;
  border-right: 52.5px solid transparent;
  border-top: 17px solid #3c3c3c;
}

.order-panel__total {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}

.order-panel__count {
  font-size: 13px;
}

.order-panel__price {
  font-weight: 600;
  font-size: 22px;
  line-height: 24px;
}

.order-panel__section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
}

.order-panel__button {
  max-width: 152px;
}

