.cart-back-to-collection {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 8px 0;
  color: inherit;
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s;
}
.cart-back-to-collection:hover {
  opacity: 0.65;
}
.cart-back-to-collection:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.cart-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 105px 40px 140px;
}

.cart-header {
  padding-bottom: 38px;
  border-bottom: 1px solid var(--border);
}

.cart-header .section-label {
  margin-bottom: 18px;
}

.cart-header h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 76px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 75px;
  padding-top: 55px;
}

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

.cart-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.cart-item-image {
  width: 180px;
  height: 240px;
  overflow: hidden;
  background: var(--surface-soft);
}

.cart-item-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.cart-item:hover .cart-item-image img {
  transform: scale(1.025);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cart-item-info .section-label {
  margin: 3px 0 14px;
}

.cart-item-info h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.cart-item-size {
  margin: 13px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-top: auto;
  padding-top: 35px;
}

.cart-quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
}

.cart-quantity form {
  margin: 0;
}

.quantity-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.quantity-button:hover {
  background: var(--text);
  color: #fff;
}

.quantity-value {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 38px;
  height: 38px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--text);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
}

.remove-item-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.remove-item-button:hover {
  color: var(--text);
}

.cart-item-price {
  margin: 25px 0 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* =========================================================
   ORDER SUMMARY
========================================================= */

.cart-summary {
  align-self: start;
  padding: 30px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.cart-summary > .section-label {
  padding-bottom: 19px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--border);
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 25px;
  padding: 13px 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.5;
}

.cart-summary-line span:last-child {
  max-width: 150px;
  text-align: right;
}

/* =========================================================
   TOTAL — CLEAN SANS SERIF
========================================================= */

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 21px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cart-summary-total strong {
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
}

/* =========================================================
   CHECKOUT BUTTON
========================================================= */

.cart-checkout-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 56px;
  margin-top: 27px;
  box-sizing: border-box;
  border: 1px solid var(--text);
  background: var(--text);
  color: #fff;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.cart-checkout-button:hover {
  background: transparent;
  color: var(--text);
}

/* =========================================================
   EMPTY CART
========================================================= */

.cart-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 430px;
  padding: 60px 20px;
  text-align: center;
}

.cart-empty h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.15;
}

.cart-empty p {
  max-width: 460px;
  margin: 18px 0 28px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.8;
}

.rentigue-site .cart-continue-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--rentigue-text, #1b1917);
  background: var(--rentigue-text, #1b1917);
  color: #fff;
  text-decoration: none;
  font-family: var(--rentigue-sans, Arial, sans-serif);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.rentigue-site .cart-continue-button:hover {
  background: transparent;
  color: var(--rentigue-text, #1b1917);
}

/* =========================================================
   TABLET
========================================================= */

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

  .cart-summary {
    max-width: none;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {
  .cart-section {
    padding: 80px 20px 100px;
  }

  .cart-header {
    padding-bottom: 30px;
  }

  .cart-header h1 {
    font-size: 48px;
  }

  .cart-layout {
    padding-top: 42px;
    gap: 45px;
  }

  .cart-item {
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 17px;
    padding-bottom: 25px;
    margin-bottom: 25px;
  }

  .cart-item-image {
    width: 105px;
    height: 140px;
  }

  .cart-item-info .section-label {
    margin-top: 0;
    margin-bottom: 9px;
  }

  .cart-item-info h2 {
    font-size: 20px;
  }

  .cart-item-size {
    margin-top: 9px;
    font-size: 9px;
  }

  .cart-item-bottom {
    padding-top: 25px;
    gap: 12px;
  }

  .quantity-button {
    width: 34px;
    height: 34px;
  }

  .quantity-value {
    min-width: 34px;
    height: 34px;
  }

  .cart-item-price {
    margin-top: 18px;
    font-size: 12px;
  }

  .cart-summary {
    padding: 24px;
  }

  .cart-summary-total strong {
    font-size: 16px;
  }

  .cart-empty {
    min-height: 360px;
  }

  .cart-empty h2 {
    font-size: 32px;
  }
}
