/* ============================================================
   PAGE PANIER — style global uniquement (variables.css, base, components)
   Pas de checkout.css, pas de variables --co-*
   ============================================================ */

.cart-page {
  padding: var(--gap) 0 calc(var(--gap) * 3);
}

.cart__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 0;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

@media (max-width: 900px) {
  .cart__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Colonne liste ── */
.cart__list-col {
  padding: 32px 38px 48px;
  border-right: 1px solid var(--border);
}

@media (max-width: 900px) {
  .cart__list-col {
    border-right: none;
    padding: 24px 20px 32px;
  }
}

.cart-page__title {
  font-family: var(--font-base);
  font-size: 1.75rem;
  font-weight: var(--heading-weight);
  color: var(--heading);
  margin: 0 0 24px;
  letter-spacing: 0.02em;
}

.cart-page__empty {
  text-align: center;
  padding: 48px 24px;
}

.cart-page__empty p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: var(--text-base);
}

/* Liste articles */
.cart-page__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-page-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.cart-page-item:first-child {
  padding-top: 0;
}

.cart-page-item__image-wrap {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 600px) {
  .cart-page-item__image-wrap {
    width: 160px;
    height: 160px;
  }
}

.cart-page-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-page-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-page-item__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cart-page-item__title {
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.cart-page-item__title a {
  color: inherit;
  text-decoration: none;
}

.cart-page-item__title a:hover {
  text-decoration: underline;
}

.cart-page-item__remove {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--timing-base), color var(--timing-base), background var(--timing-base);
}

.cart-page-item__remove:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(41, 182, 246, 0.06);
}

.cart-page-item__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Sélecteur quantité */
.cart-page-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.cart-page-qty__btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.125rem;
  cursor: pointer;
  transition: background var(--timing-base), color var(--timing-base);
}


.cart-page-qty__btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cart-page-qty__value {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9375rem;
}

.cart-page-item__line-total {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

/* ── Colonne récap ── */
.cart__summary-col {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 900px) {
  .cart__summary-col {
    padding: 24px 20px 32px;
    border-top: 1px solid var(--border);
  }
}

.cart-summary {
  max-width: 320px;
  margin: 0 auto;
  width: 100%;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cart-summary__label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.cart-summary__value {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
}

.cart-summary__note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 24px;
  line-height: 1.4;
}

.cart-summary__submit {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.cart-summary__continue {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 0.9375rem;
  color: #fff;
  text-decoration: none;
}

.cart-summary__continue:hover {
  text-decoration: underline;
}
