/* =============================
   ROOT FEEL
============================= */
.cart-container {
  max-width: 82rem;
  margin: 20px auto;
  padding: 2rem;
}

/* =============================
   LAYOUT
============================= */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .cart-layout {
    grid-template-columns: 2.2fr 1fr;
  }
}

/* =============================
   ITEMS
============================= */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* =============================
   ITEM CARD — MODERN
============================= */
.cart-item {
  display: flex;
  gap: 1rem;
  padding: 0.5rem;
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: all .25s ease;
}

.cart-item:hover {
  border-color: #111827;
  transform: translateY(-2px);
}

/* =============================
   IMAGE — FLOATING
============================= */
.cart-item-image {
  width: 9rem;
  height: 9rem;
  border-radius: 1rem;
  object-fit: cover;
  background: #f3f4f6;
}

/* =============================
   CONTENT
============================= */
.cart-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.cart-item-info {
  max-width: 75%;
}

.cart-item-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #020617;
}

.cart-item-size {
  font-size: .85rem;
  color: #64748b;
  margin-top: .25rem;
}

/* =============================
   PRICES — STRIPE STYLE
============================= */
.cart-item-price {
  text-align: right;
}

.cart-item-old-price {
  font-size: .8rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.cart-item-new-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #020617;
}

.cart-item-discount .cart-item-new-price {
  color: #dc2626;
}

/* =============================
   ACTIONS
============================= */
.cart-item-actions {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
}

.cart-quantity {
  width: 5rem;
  padding: .6rem;
  border-radius: .5rem;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.cart-remove-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: .75rem;
  background: #f1f5f9;
  color: #475569;

  border: 1px solid #e5e7eb;
  cursor: pointer;

  transition: all .2s ease;
}

.cart-remove-btn svg {
  width: 20px;
  height: 20px;
}

.cart-remove-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

.cart-remove-btn:active {
  transform: scale(.95);
}


/* =============================
   SUMMARY — CHECKOUT SaaS
============================= */
.cart-summary {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 40px rgba(0,0,0,.06);
  position: sticky;
  top: 2rem;
  max-height: calc(80vh - 4rem); 
  overflow-y: auto; 
}

.cart-summary-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #020617;
  margin-bottom: 1.5rem;
}

/* =============================
   COUPON — MODERN INPUT
============================= */
.cart-coupon {
  padding: 1rem 0 1rem;
}

.cart-coupon label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #475569;
}

.cart-coupon-row {
  display: flex;
  gap: .75rem;
}

.cart-coupon-input {
  flex: 1;
  padding: .7rem 1rem;
  border-radius: .75rem;
  border: 1px solid #e5e7eb;
}

.cart-coupon-btn {
  background: #020617;
  color: #fff;
  padding: .7rem 1.25rem;
  border-radius: .75rem;
  font-weight: 600;
}

/* =============================
   TOTALS
============================= */
.cart-totals {
  font-size: .9rem;
   margin-bottom: 1rem;
}

.cart-totals div {
  display: flex;
  justify-content: space-between;
  margin-top: .75rem;
}

.cart-savings {
  color: #16a34a;
}

.cart-discount {
  color: #dc2626;
}

.cart-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: #020617;
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}

/* =============================
   BUTTONS — CLEAN
============================= */
.cart-summary-actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.btn-primary {
  background: #020617;
  color: #fff;
  padding: 1rem;
  border-radius: .75rem;
  font-weight: 700;
}

.btn-secondary {
  background: #f1f5f9;
  color: #020617;
  padding: 1rem;
  border-radius: .75rem;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
  padding: 1rem;
  border-radius: .75rem;
}
