/* =========================
   CART (Road Money)
========================= */

.cart {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 60px;
}

.cart-head {
  padding: 20px 0 24px;
}

.cart-head h1 {
  color: var(--accent);
  font-size: 2rem;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.cart-head p {
  color: var(--muted);
}

/* Grid */
.cart-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 18px;
  align-items: start;
}

/* Panels */
.panel {
  background: var(--card-bg);
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

.panel h2 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

/* Items */
.cart-item {
  display: grid;
  grid-template-columns: 1.2fr 0.5fr 0.5fr;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid #2a2a2a;
}

.cart-item:first-of-type {
  border-top: none;
  padding-top: 6px;
}

.item-left {
  display: flex;
  gap: 12px;
  align-items: center;
}

.thumb {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,107,0,0.35), rgba(0,0,0,0.6));
  border: 1px solid rgba(255,255,255,0.10);
}

.info .name {
  color: #fff;
  font-weight: 800;
  margin: 0;
}

.info .meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.item-mid .label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #111;
  color: #fff;
  outline: none;
}

select:focus {
  border-color: rgba(255, 107, 0, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.18);
}

.item-right {
  text-align: right;
}

.price {
  color: #fff;
  font-weight: 800;
  margin: 0 0 6px;
}

.remove {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.remove:hover {
  color: var(--accent);
  border-bottom-color: rgba(255, 107, 0, 0.5);
}

/* Actions */
.cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #2a2a2a;
}

.link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.link:hover {
  color: var(--accent);
  border-bottom-color: rgba(255, 107, 0, 0.5);
}

.fineprint {
  margin-top: 12px;
  color: #888;
  font-size: 0.9rem;
}

/* Summary */
.summary .totals .line {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  padding: 6px 0;
}

.grand {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #2a2a2a;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
}

.btn.full {
  display: block;
  text-align: center;
  margin-top: 14px;
}

.badge {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 107, 0, 0.10);
  border: 1px solid rgba(255, 107, 0, 0.25);
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  text-align: center;
}

/* Responsive */
@media (max-width: 980px) {
  .cart-grid {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .item-right {
    text-align: left;
  }

  .cart-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
