﻿.cart-page {
  background: #ffffff;
  padding: 28px 0 92px;
}

.cart-page__container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  color: #2f2a26;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
}

.cart-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #bdb2a7;
}

.cart-breadcrumbs a {
  color: #bdb2a7;
  text-decoration: none;
  font-weight: 500;
}

.cart-breadcrumbs__sep {
  color: #c7beb5;
}

.cart-breadcrumbs span:last-child {
  color: #c4b9ae;
}

.cart-page__header {
  margin-bottom: 22px;
}

.cart-page__title {
  margin: 0 0 32px;
  font-size: 60px;
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: #4b3428;
}

.cart-page__subtitle {
  margin: 8px 0 0;
  max-width: 620px;
  color: #6b5f56;
  font-size: 16px;
  line-height: 1.55;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 452px;
  gap: 24px;
  align-items: start;
}

.cart-main {
  min-width: 0;
}

.cart-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 150px;
  gap: 16px;
  padding: 0 20px 12px 6px;
  color: #2f2a26;
  font-size: 14px;
  font-weight: 500;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 150px;
  gap: 16px;
  align-items: start;
  padding: 18px 20px 16px;
  border: 1px solid rgba(236, 220, 200, 0.9);
  border-radius: 20px;
  background-color: rgba(252, 248, 242, 1) !important;
  background-image: none !important;
  box-shadow: 0 6px 16px rgba(100, 69, 40, 0.014);
}

.cart-item__product {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.cart-item__image {
  display: block;
  width: 96px;
  height: 96px;
  padding: 10px;
  border-radius: 14px;
  overflow: hidden;
  background: #fffdf9;
  box-shadow: 0 8px 18px rgba(61, 39, 22, 0.08);
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item__details {
  min-width: 0;
  padding-top: 4px;
}

.cart-item__title {
  display: inline-block;
  margin: 0 0 10px;
  color: #2f251f;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.cart-item__title:hover {
  color: #8b5b3c;
}

.cart-item__meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #584a42;
  font-size: 14px;
  line-height: 1.45;
}

.cart-item__price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-top: 18px;
}

.cart-item__price-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.cart-item__price-current {
  font-size: 18px;
  font-weight: 800;
  color: #3a2b22;
}

.cart-item__price-old {
  color: #a69d95;
  font-size: 12px;
  text-decoration: line-through;
}

.cart-item__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  padding-top: 2px;
}

.cart-item__qty {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 114px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #8f7b69;
  border-radius: 999px;
  background: #fffdfa;
}

.cart-item__qty button {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #5a4638;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.cart-item__qty button:hover {
  background: #f1e4d7;
  color: #2f251f;
}

.cart-item__qty-value {
  min-width: 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #2f251f;
}

.cart-item__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 2px;
}

.cart-item__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #6e6258;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.cart-item__remove:hover {
  border-color: #cda88c;
  background: #fff7ef;
  color: #8b5b3c;
}

.cart-item__remove img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.cart-item__remove svg {
  display: none;
}

.cart-item__remove svg,
.cart-share-btn svg,
.cart-checkout-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-share-btn img {
  display: block;
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.cart-checkout-btn img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.cart-import-note {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff1dc;
  color: #6f452d;
  font-size: 14px;
  font-weight: 700;
}

.cart-empty__card {
  padding: 28px 24px;
  border: 1px dashed #dccbbb;
  border-radius: 18px;
  background: #fffaf4;
  text-align: center;
}

.cart-empty__card h2 {
  margin: 0 0 10px;
  font-size: 28px;
  color: #2f251f;
}

.cart-empty__card p {
  margin: 0;
  color: #6f655d;
  line-height: 1.6;
}

.cart-empty__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-width: 180px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: #8b5b3c;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(139, 91, 60, 0.22);
}

.cart-side {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 30px;
}

.cart-share-top {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
}

.cart-share-status {
  position: absolute;
  top: 18px;
  right: 0;
  max-width: 100%;
  min-height: 0;
  margin: 0;
  color: #8b5b3c;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  text-align: right;
}

.cart-summary {
  position: sticky;
  top: 24px;
  align-self: start;
  width: 100%;
  min-width: 540px;
  padding: 18px 28px 18px;
  border: 1px solid rgba(236, 220, 200, 0.9);
  border-radius: 22px;
  background-color: rgba(252, 248, 242, 1) !important;
  background-image: none !important;
  box-shadow: 0 8px 18px rgba(100, 69, 40, 0.016);
}

.cart-summary__share-row {
  display: flex;
  justify-content: flex-end;
  min-height: 24px;
}

.cart-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 0;
  color: #2d2622;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.cart-share-btn:hover:not(:disabled) {
  color: #8b5b3c;
}

.cart-share-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.cart-summary__title {
  margin: 0 0 34px;
  text-align: center;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #241a15;
}

.cart-summary__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 16px;
  color: #342a25;
}

.cart-summary__row strong {
  font-size: 18px;
  color: #2f251f;
}

.cart-summary__row--discount strong {
  color: #ff5b53;
}

.cart-summary__row--discount:not(.is-active) strong {
  color: #a39587;
}

.cart-summary__row--muted {
  color: #a1978c;
}

.cart-summary__divider {
  height: 1px;
  margin: 8px 0 12px;
  background: rgba(90, 68, 49, 0.08);
}

.cart-summary__row--total {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 700;
}

.cart-summary__row--total strong {
  font-size: 22px;
}

.cart-checkout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  margin-top: 28px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(180deg, #f7d489 0%, #f4ca70 100%);
  color: #2f251f;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cart-checkout-btn:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 12px 28px rgba(239, 193, 101, 0.36);
}

.cart-checkout-btn.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.cart-page .hidden {
  display: none !important;
}

@media (max-width: 1280px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 500px;
  }
}

@media (max-width: 1200px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 430px;
  }
}

@media (max-width: 1120px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    min-width: 0;
  }
}

@media (max-width: 1100px) {
  .cart-summary {
    position: static;
  }
}

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

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item__price {
    padding-top: 0;
  }

  .cart-item__controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .cart-side {
    position: static;
    padding-top: 0;
    gap: 8px;
  }

  .cart-share-top {
    position: static;
    top: auto;
    right: auto;
    justify-content: flex-start;
  }

  .cart-share-status {
    position: static;
    top: auto;
    right: auto;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .cart-page {
    padding: 24px 0 54px;
  }

  .cart-page__container {
    padding: 0 16px;
  }

  .cart-page__title {
    margin-bottom: 24px;
    font-size: 46px;
  }

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

  .cart-item {
    padding: 16px;
  }

  .cart-item__product {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
  }

  .cart-item__image {
    width: 84px;
    height: 84px;
    padding: 8px;
  }

  .cart-item__controls {
    flex-wrap: wrap;
  }

  .cart-summary {
    padding: 18px 18px 16px;
  }

  .cart-summary__title {
    margin-bottom: 24px;
    font-size: 26px;
  }
}
